31 lines
708 B
Makefile
31 lines
708 B
Makefile
GXX=g++
|
|
GXXFLAGS=-Wall -O2
|
|
LD=g++
|
|
LDFLAGS=-Wall -lm -O2
|
|
|
|
HEADER=
|
|
|
|
all: test
|
|
|
|
% : %.o
|
|
$(LD) $(LDFLAGS) -o $@ $^
|
|
%.o : %.cc $(HEADER)
|
|
$(GXX) $(GXXFLAGS) -c $<
|
|
|
|
clientinfo.o : clientinfo.hh point.hh
|
|
server.o : server.hh clientinfo.hh referencepoint.hh accesspoint.hh point.hh measurement.hh area.hh
|
|
referencepoint.o : referencepoint.hh measurement.hh point.hh
|
|
accesspoint.o : accesspoint.hh point.hh
|
|
point.o : point.hh
|
|
measurement.o : measurement.hh
|
|
area.o : area.hh point.hh
|
|
test.o : point.hh measurement.hh accesspoint.hh referencepoint.hh clientinfo.hh server.hh
|
|
|
|
test : point.o measurement.o accesspoint.o referencepoint.o clientinfo.o server.o area.o
|
|
|
|
clean:
|
|
@rm -fv *~ *.o
|
|
|
|
purge : clean
|
|
@rm -fv test
|