root/vtcross/branches/trnewman/Makefile @ 46

Revision 37, 0.8 KB (checked in by ahe, 16 years ago)

change makefile to incorporate client

Line 
1#
2# Cognitive radio simulator
3#
4
5TESTS = cognitive_radio cognitive_engine
6all: $(TESTS)
7
8CC = g++
9CFLAGS = -Wall -O3
10LDFLAGS = -lm -ldl -pthread -lnsl
11#LDFLAGS = -lm -ldl -pthread -lsigprocc
12
13
14OBJS = tinyxml.o tinyxmlparser.o tinyxmlerror.o tinystr.o
15SOCKET_OBJS = ServerSocket.o ClientSocket.o Socket.o
16#OBJS = cbr.o sqlite3.o utility.o cognitive_radio_test.o ezxml.o
17
18HEADERS = src/tinyxml.h src/tinystr.h
19#HEADERS = src/cbr.h src/cognitive_radio_test.h \
20#                 src/sqlite3.h src/sqlite3ext.h \
21#                 src/utility.h src/cognitive_radio_test.h
22
23$(SOCKET_OBJS) : %.o : src/socket/%.cpp
24        $(CC) $(CFLAGS) -c $< -o $@
25
26$(OBJS) : %.o : src/%.cpp $(HEADERS)
27        $(CC) $(CFLAGS) -c $< -o $@
28
29$(TESTS) : % : src/main_%.cpp $(OBJS) $(SOCKET_OBJS)
30        $(CC) $(CFLAGS) $(OBJS) $(SOCKET_OBJS) $(LDFLAGS) $< -o $@
31
32clean:
33        rm -rf *.o socket/*.o $(TESTS)
34
Note: See TracBrowser for help on using the browser.