37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
GXX=g++
|
|
GXXFLAGS=-Wall -O2
|
|
LD=g++
|
|
LDFLAGS= -lm -O2
|
|
|
|
all: test
|
|
|
|
clientinfo.o: clientinfo.cc clientinfo.hh point.hh
|
|
$(GXX) $(GXXFLAGS) clientinfo.cc -c -o clientinfo.o
|
|
|
|
server.o: server.cc server.hh clientinfo.hh referencepoint.hh accesspoint.hh point.hh measurement.hh
|
|
$(GXX) $(GXXFLAGS) server.cc -c -o server.o
|
|
|
|
referencepoint.o: referencepoint.cc referencepoint.hh measurement.hh point.hh
|
|
$(GXX) $(GXXFLAGS) referencepoint.cc -c -o referencepoint.o
|
|
|
|
accesspoint.o: accesspoint.cc accesspoint.hh point.hh
|
|
$(GXX) $(GXXFLAGS) accesspoint.cc -c -o accesspoint.o
|
|
|
|
point.o: point.cc point.hh
|
|
$(GXX) $(GXXFLAGS) point.cc -c -o point.o
|
|
|
|
measurement.o: measurement.cc measurement.hh
|
|
$(GXX) $(GXXFLAGS) measurement.cc -c -o measurement.o
|
|
|
|
test.o: test.cc point.hh measurement.hh accesspoint.hh referencepoint.hh clientinfo.hh server.hh
|
|
$(GXX) $(GXXFLAGS) test.cc -c -o test.o
|
|
|
|
test: test.o point.o measurement.o accesspoint.o referencepoint.o clientinfo.o server.o
|
|
$(LD) $(LDFLAGS) -o test test.o point.o measurement.o accesspoint.o referencepoint.o clientinfo.o server.o
|
|
|
|
clean:
|
|
@rm -fv *~ *.o
|
|
|
|
purge : clean
|
|
@rm -fv test
|