Rev 513 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 513 | Rev 524 | ||
---|---|---|---|
1 | TARGET = UNIX |
1 | TARGET = UNIX |
2 | 2 | ||
3 | CPP = g++ |
3 | CPP = g++ |
4 | RM = rm -f |
4 | RM = rm -f |
5 | MAKE = make |
5 | MAKE = make |
6 | 6 | ||
7 | CXXINCS = -I"./" -I"../" |
7 | CXXINCS = -I"./" -I"../" |
8 | CXXFLAGS = $(CXXINCS) -O3 |
8 | CXXFLAGS = $(CXXINCS) -O3 |
9 | 9 | ||
10 | LINKOBJ = Kopter.o FlightLog.o Parser.o Communication.o Handler.o |
10 | LINKOBJ = Kopter.o FlightLog.o Parser.o Communication.o Handler.o TestingCommunication.o |
11 | 11 | ||
12 | all: all-before $(LINKOBJ) |
12 | all: all-before $(LINKOBJ) |
13 | 13 | ||
14 | all-before: depend |
14 | all-before: depend |
15 | 15 | ||
16 | depend: |
16 | depend: |
17 | @$(CPP) $(CXXINCS) -MM *.cpp > depend |
17 | @$(CPP) $(CXXINCS) -MM *.cpp > depend |
18 | 18 | ||
19 | #kopter.o is only a header |
19 | #kopter.o is only a header |
20 | Kopter.o: Kopter.h |
20 | Kopter.o: Kopter.h |
21 | 21 | ||
22 | #all other files have .cpp files |
22 | #all other files have .cpp files |
23 | %.o : %.cpp |
23 | %.o : %.cpp |
24 | $(CPP) $(CXXFLAGS) -c -o $@ $< |
24 | $(CPP) $(CXXFLAGS) -c -o $@ $< |
25 | 25 | ||
26 | clean-custom: |
26 | clean-custom: |
27 | 27 | ||
28 | clean: clean-custom |
28 | clean: clean-custom |
29 | ${RM} $(LINKOBJ) depend *~ *.a |
29 | ${RM} $(LINKOBJ) depend *~ *.a |
30 | 30 |