summaryrefslogtreecommitdiff
path: root/app/xlockmore/win32/Makefile.win32
blob: 998d3b9b0bd423b48af5f7ccdffe7aaa1a18d462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# build applications
CC=gcc
MAKE=make
RES=windres

# compiler flags
CFLAGS=-DWIN32 -D_DEBUG -DSYSV -mno-cygwin -mwindows -O2
#CFLAGS=-DWIN32 -DSYSV -mno-cygwin -mwindows -O2

# Include & Library directories
WIN32API=/usr/include/w32api
INCS=-I$(WIN32API) -I../xlock -I.

# sources
SRC=	xlockrc.rc		\
		Xapi.c			\
		xlock95.c	\

# objects
OBJS  = $(SRC:.rc=.o)
OBJS += $(SRC:.c=.o)

# general rules
.rc.o:
	$(RES) --include-dir $(WIN32API) -i $< -o $@

.c.o:
	$(CC) $(CFLAGS) -c -o $@ $< $(INCS)

# specific rules
all:	$(OBJS)

xlock95.o: xlock95.h
xlockrc.o: xlock95.h

xlockrc.o: xlockrc.rc
	$(RES) --include-dir $(WIN32API) -i $< -o $@

clean:
	rm -f *.o *.scr core *~ *% *.bak *.rej *.orig *.patch *.pure