#Makefile for quantum minigolf; edit according to your needs SHELL=/bin/sh # Source of the installation. No need to change this SRCDIR = . CC = cc LDFLAGS = -L${LOCALBASE}/lib -lm `${SDL_CONFIG} --libs` -lSDL_ttf -lfftw3f INCFLAGS = -I${LOCALBASE}/include -I${LOCALBASE}/include/SDL CXXFLAGS += -Wall -Wno-unused -DLINUX LDSOFLAGS = -Wl OBJS = quantumminigolf.o Renderer.o ClassicSimulator.o QuantumSimulator.o SoftwareTracker.o Tracker.o TrackSelector.o EXE = quantumminigolf # pattern rule to compile object files from C files # might not work with make programs other than GNU make %.o : %.cpp Makefile $(CXX) $(INCFLAGS) $(CXXFLAGS) -c $< -o $@ all: $(EXE) $(EXE): $(OBJS) Makefile $(CXX) -o $(EXE) $(OBJS) $(LDFLAGS) $(CXXFLAGS) .PHONY : clean clean: rm -f $(OBJS) $(EXE)