-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
41 lines (30 loc) · 797 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
CC=gcc
OS=_THISIS_LINUX
VER=_SIMPLIPC
SIMPL_DIR=${SIMPL_HOME}
INCL_DIR=${SIMPL_DIR}/include
CDFLAGS=-c -Wall -I ${INCL_DIR} -D${OS} -D${VER}
LDFLAGS=-L ${SIMPL_DIR}/lib -lsimpl
LIBS=-lcurses
SOURCES = display_admin game_admin cycle timer courier painter input_admin keyboard
all: ${SOURCES}
%.o: %.c
${CC} ${CDFLAGS} $? -o $@
timer: timer.o
${CC} $? -o $@ ${LDFLAGS}
cycle: cycle.o
${CC} $? -o $@ ${LIBS} ${LDFLAGS} -lm
painter: painter.o
${CC} $? -o $@ ${LIBS} ${LDFLAGS}
courier: courier.o
${CC} $? -o $@ ${LDFLAGS}
display_admin: display_admin.o
${CC} $? -o $@ ${LDFLAGS}
game_admin: game_admin.o
${CC} $? -o $@ ${LIBS} ${LDFLAGS}
input_admin: input_admin.o
${CC} $? -o $@ ${LDFLAGS}
keyboard: keyboard.o
${CC} $? -o $@ ${LIBS} ${LDFLAGS}
clean:
@rm -f *.o *~ ${SOURCES}