-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
52 lines (36 loc) · 935 Bytes
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
#
#
#
SRCS = main.c score.c
OBJS = main.o score.o
XLIB = -lX11
MOTIFLIBS = -lXm -lXt
EXTENSIONLIB = -lXext
SYSLIBS = -lm
LIBS = -L/opt/local/lib $(MOTIFLIBS) $(EXTENSIONLIB) $(XLIB) $(SYSLIBS)
LOCALINCS = -I.
MOTIFINCS = -I/opt/local/include -I/opt/local/include/X11
INCS = $(LOCALINCS) $(MOTIFINCS)
CDEBUGFLAGS = -g
CFLAGS = $(DEFINES) $(INCS) $(CDEBUGFLAGS)
DESTINATION = $(HOME)/bin
PROG = mtetris
DEBUG = debug
DEPEND = makedepend
.SUFFIXES: .o .c
.c.o:
$(CC) -c $(INCS) $(CFLAGS) $*.c
all: $(PROG)
$(PROG): $(SRCS) Makefile
$(CC) -o $(PROG) $(CFLAGS) $(SRCS) $(LIBS)
strip $(PROG)
$(DEBUG): $(OBJS) Makefile
$(CC) -o $(DEBUG) $(OBJS) $(LIBS)
install: $(PROG)
install -c -s $(PROG) $(DESTINATION)
clean:
rm -f *~ *.bak core *.o \#*\# $(PROG) $(DEBUG) lint_errs
rm -rf mtetris.dSYM
depend:
$(DEPEND) $(INCS) $(SRCS)
# DO NOT DELETE THIS LINE -- make depend depends on it.