damaris-backends/drivers/PTS-Synthesizer/Makefile

35 lines
825 B
Makefile
Raw Normal View History

2014-06-26 11:10:51 +00:00
#############################################################################
#
# Author: Achim Gaedke
# Created: October 2004
#
#############################################################################
CXX=g++
CXXFLAGS=-g -O0 -Wall -Wshadow -pedantic
CXXCPPFLAGS=-I. -I../..
LDFLAGS=../../core/core.a -lexpat
.PHONY: all clean install
all: PTS.o PTS_test.exe
../../tools/add_endline.exe: ../../tools/add_endline.cpp
$(CXX) $< -o $@
../../core/core.a:
$(MAKE) -C ../../core core.a
PTS.o: PTS.cpp ../frequgen.h
$(CXX) -c $(CXXFLAGS) $(CXXCPPFLAGS) -o $@ $<
PTS_test.o: PTS_test.cpp PTS.h
$(CXX) -c $(CXXFLAGS) $(CXXCPPFLAGS) -o $@ $<
PTS_test.exe: PTS_test.o PTS.o
$(CXX) -o $@ $^ $(LDFLAGS)
clean: ../../tools/add_endline.exe
for f in PTS.cpp PTS.h PTS_test.cpp; do $< $$f; done
rm -f *.exe *.o *~ core.*