Ticket #38146: patch-makefile.diff
File patch-makefile.diff, 1.4 KB (added by FlorianFranzen@…, 12 years ago) |
---|
-
makefile
old new 4 4 5 5 PROGRAM = KlustaKwik 6 6 OBJS = io.o linalg.o log.o parameters.o precomputations.o util.o klustakwik.o 7 CC = g++8 7 DEBUG = -g 9 8 OPTIMISATIONS = -O3 -ffast-math 10 CFLAGS = -Wall -c -Wno-write-strings $(OPTIMISATIONS)11 LFLAGS = -Wall9 CFLAGS = $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -Wall -c -Wno-write-strings $(OPTIMISATIONS) 10 LFLAGS = $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -Wall 12 11 13 12 all: executable 14 13 … … 24 23 .PHONY: all debug native executable clean 25 24 26 25 executable: $(OBJS) 27 $(C C) $(LFLAGS) $(OBJS) -o $(PROGRAM)26 $(CXX) $(LFLAGS) $(OBJS) -o $(PROGRAM) 28 27 29 28 clean: 30 29 \rm *.o $(PROGRAM) … … 38 37 util.h: numerics.h 39 38 40 39 io.o: io.cpp klustakwik.h 41 $(C C) $(CFLAGS) $<40 $(CXX) $(CFLAGS) $< 42 41 43 42 linalg.o: linalg.cpp linalg.h 44 $(C C) $(CFLAGS) $<43 $(CXX) $(CFLAGS) $< 45 44 46 45 log.o: log.cpp log.h parameters.h 47 $(C C) $(CFLAGS) $<46 $(CXX) $(CFLAGS) $< 48 47 49 48 klustakwik.o: klustakwik.cpp klustakwik.h 50 $(C C) $(CFLAGS) $<49 $(CXX) $(CFLAGS) $< 51 50 52 51 parameters.o: parameters.cpp parameters.h log.h util.h 53 $(C C) $(CFLAGS) $<52 $(CXX) $(CFLAGS) $< 54 53 55 54 precomputations.o: precomputations.cpp klustakwik.h 56 $(C C) $(CFLAGS) $<55 $(CXX) $(CFLAGS) $< 57 56 58 57 util.o: util.cpp util.h 59 $(C C) $(CFLAGS) $<58 $(CXX) $(CFLAGS) $<