47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
.PHONY : all clean purge install uninstall astyle
|
|
|
|
GXX = g++
|
|
DEBUG = -g
|
|
GXXFLAGS = $(DEBUG) -Wall -pedantic
|
|
LD = g++
|
|
LDFLAGS = -lm
|
|
LIBS = -lpq -lboost_program_options
|
|
|
|
TARGET = owlps-positioning
|
|
HEADER = owlps-positioning.hh
|
|
|
|
all : ${TARGET}
|
|
|
|
% : %.o
|
|
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
%.o : %.cc $(HEADER)
|
|
$(GXX) $(GXXFLAGS) -c $<
|
|
|
|
libowlps-positioning.o : libowlps-positioning.hh
|
|
positioning.o : point.hh referencepoint.hh accesspoint.hh area.hh measurement.hh libowlps-positioning.hh
|
|
server.o : server.hh positioning.hh point.hh measurement.hh treatment.hh libowlps-positioning.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
|
|
treatment.o : treatment.hh point.hh measurement.hh referencepoint.hh accesspoint.hh libowlps-positioning.hh
|
|
owlps-positioning.o : server.hh
|
|
|
|
${TARGET} : point.o measurement.o accesspoint.o referencepoint.o positioning.o server.o area.o treatment.o libowlps-positioning.o owlps-positioning.o
|
|
|
|
clean:
|
|
@rm -fv *~ *.o *.orig
|
|
|
|
purge : clean
|
|
@rm -f $(TARGET)
|
|
|
|
install :
|
|
@echo "La cible d'installation de ${TARGET} sera implémentée prochainement. Vous devez lancer le programme 'guinumo' depuis le répertoire des sources."
|
|
|
|
uninstall :
|
|
@echo "La cible de désinstallation de ${TARGET} sera implémentée en même temps que la cible d'installation."
|
|
|
|
astyle :
|
|
@astyle --style=gnu *.cc *.hh
|