Revision 105, 0.9 KB
(checked in by bhilburn, 15 years ago)
|
Totally re-organized the codebase. This totally breaks everything. I mean
_everything_. Deleted redundant files, local includes, and copied all makefiles
to top-level directory. Need to rewrite all of them.
|
Line | |
---|
1 | # |
---|
2 | # Cognitive radio simulator |
---|
3 | # |
---|
4 | |
---|
5 | TESTS = cognitive_radio |
---|
6 | #CTESTS = client |
---|
7 | all: $(TESTS) $(CTESTS) |
---|
8 | |
---|
9 | CC = g++ |
---|
10 | cc = gcc |
---|
11 | CFLAGS = -Wall -O3 |
---|
12 | LDFLAGS = -lm -ldl -pthread -lnsl |
---|
13 | #LDFLAGS = -lm -ldl -pthread -lsigprocc |
---|
14 | |
---|
15 | |
---|
16 | OBJS = tinyxml.o tinyxmlparser.o tinyxmlerror.o tinystr.o |
---|
17 | #SOCKET_OBJS = ServerSocket.o Socket.o |
---|
18 | #OBJS = cbr.o sqlite3.o utility.o cognitive_radio_test.o ezxml.o |
---|
19 | |
---|
20 | HEADERS = src/tinyxml.h src/tinystr.h |
---|
21 | #HEADERS = src/cbr.h src/cognitive_radio_test.h \ |
---|
22 | # src/sqlite3.h src/sqlite3ext.h \ |
---|
23 | # src/utility.h src/cognitive_radio_test.h |
---|
24 | |
---|
25 | #$(SOCKET_OBJS) : %.o : src/socket/%.cpp |
---|
26 | # $(CC) $(CFLAGS) -c $< -o $@ |
---|
27 | |
---|
28 | $(OBJS) : %.o : src/%.cpp $(HEADERS) |
---|
29 | $(CC) $(CFLAGS) -c $< -o $@ |
---|
30 | |
---|
31 | $(TESTS) : % : src/main_%.cpp $(OBJS) $(SOCKET_OBJS) |
---|
32 | $(CC) $(CFLAGS) $(OBJS) $(SOCKET_OBJS) $(LDFLAGS) $< -o $@ |
---|
33 | |
---|
34 | $(CTESTS) : % : src/main_%.c |
---|
35 | $(cc) $(CFLAGS) $(LDFLAGS) $< -o $@ |
---|
36 | |
---|
37 | clean: |
---|
38 | rm -rf *.o socket/*.o $(TESTS) |
---|
39 | |
---|