root/vtcross/trunk/CR_shell/Makefile @ 95

Revision 95, 0.9 KB (checked in by trnewman, 15 years ago)

Cleaned up the code and put in the hooks for optimization request messages

Line 
1#
2# Cognitive radio simulator
3#
4
5TESTS = cognitive_radio
6#CTESTS = client
7all: $(TESTS) $(CTESTS)
8
9CC = g++
10cc = gcc
11CFLAGS = -Wall -O3
12LDFLAGS = -lm -ldl -pthread -lnsl
13#LDFLAGS = -lm -ldl -pthread -lsigprocc
14
15
16OBJS = 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
20HEADERS = 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
37clean:
38        rm -rf *.o socket/*.o $(TESTS)
39
Note: See TracBrowser for help on using the browser.