damaris-backends/tools/Makefile
2014-06-26 11:10:51 +00:00

35 lines
763 B
Makefile

#############################################################################
#
# Author: Achim Gaedke
# Created: June 2004
#
#############################################################################
CXX=g++
CXXFLAGS=-g -O0 -Wshadow -Wall
CXXCPPFLAGS=-I. -I..
LIBS=-lexpat -lxerces-c
.PHONY: all clean install
all: restart_core.exe ../core/core_config.o add_endline.exe
restart_core.o: restart_core.cpp ../core/core_config.h
$(CXX) $(CXXCPPFLAGS) $(CXXFLAGS) -c $< -o $@
restart_core.exe: restart_core.o ../core/core_config.o
$(CXX) $^ -o $@ $(LIBS)
add_endline.exe: add_endline.cpp
$(CXX) $^ -o $@
../core/core_config.o:
$(MAKE) -C ../core core_config.o
clean:
rm -f *.exe *.o *~
install: restart_core.exe
install restart_core.exe $(PREFIX)