# tagmodifier Makefile # # Part of the Routino routing software. # # This file Copyright 2013-2014 Andrew M. Bishop # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # # All configuration is in the top-level Makefile.conf include ../../Makefile.conf # Compilation targets C=$(wildcard *.c) D=$(wildcard .deps/*.d) ROUTINO_SRC=../../src EXE=tagmodifier ######## all: $(EXE) ######## TAGMODIFIER_OBJ=tagmodifier.o \ $(ROUTINO_SRC)/files.o $(ROUTINO_SRC)/logging.o $(ROUTINO_SRC)/logerror.o \ $(ROUTINO_SRC)/uncompress.o $(ROUTINO_SRC)/xmlparse.o $(ROUTINO_SRC)/tagging.o tagmodifier : $(TAGMODIFIER_OBJ) $(LD) $(TAGMODIFIER_OBJ) -o $@ $(LDFLAGS) ######## $(ROUTINO_SRC)/%.o : cd $(ROUTINO_SRC) && $(MAKE) $(notdir $@) %.o : %.c @[ -d .deps ] || mkdir .deps $(CC) -c $(CFLAGS) -DSLIM=0 -I$(ROUTINO_SRC) $< -o $@ -MMD -MP -MF $(addprefix .deps/,$(addsuffix .d,$(basename $@))) ######## test: ######## install: ######## clean: rm -f *~ rm -f *.o rm -f core ######## distclean: clean -rm -f $(EXE) -rm -f $(D) -rm -fr .deps ######## include $(D) ######## .PHONY:: all test install clean distclean