-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.bak
76 lines (60 loc) · 1.28 KB
/
Makefile.bak
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
CC = g++
#CFLAGS = -O4 -DNDEBUG -funroll-loops
CFLAGS = -g
LIBFLAG = -lm
EXTHDRS = /usr/include/assert.h \
/usr/include/floatingpoint.h \
/usr/include/math.h \
/usr/include/stdio.h \
/usr/include/sys/ieeefp.h
HDRS = global.h \
queue.h \
rand.h \
simulator.h \
calendar.h \
packet.h \
event.h \
easyio.h \
stat.h \
buffer.h
MAKEFILE = Makefile
OBJS = main.o \
queue.o \
rand.o \
simulator.o \
calendar.o \
packet.o \
event.o \
easyio.o \
stat.o \
buffer.o
PROGRAM = queue
SRCS = main.c \
queue.c \
rand.c \
simulator.c \
calendar.c \
packet.c \
event.c \
easyio.c \
stat.c \
buffer.c
all: $(PROGRAM)
$(PROGRAM): $(OBJS) $(LIBS)
@echo -n "Loading $(PROGRAM) ... "
@$(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM) $(LIBFLAG)
@echo "done"
clean:; @rm -f $(OBJS)
depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM)
index:; @ctags -wx $(HDRS) $(SRCS)
tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
###
main.o: global.h simulator.h queue.h
queue.o: global.h simulator.h queue.h event.h
rand.o: global.h rand.h
simulator.o: global.h
calendar.o: calendar.h global.h
packet.o: packet.h global.h
buffer.o: buffer.h global.h
event.o: global.h event.h
# DO NOT DELETE