# Makefile for imgsynth2 # Author: Guenther Neuwirth (0626638), Manuel Mausz (0728348) # Created: 26.04.2009 CXX= g++ LD= $(CXX) DEBUGFLAGS= -DNDEBUG INCLUDE_PATH= -I/usr/local/include CXXFLAGS= -O -ansi -pedantic-errors -Wall -Wno-long-long $(INCLUDE_PATH) $(DEBUGFLAGS) LDFLAGS= LIBS= -L/usr/local/lib -lboost_program_options BIN= imgsynth2 OBJS= cpixelformat_bgr24.o cpixelformat_bgr555.o \ cpixelformat_indexed8.o cpixmap.o cwindowsbitmap.o \ cbitmap.o cscriptparser.o imgsynth2.o HEADERS= cpixelformat.h cpixelformat_bgr24.h cpixelformat_bgr555.h \ cpixelformat_indexed8.h cpixmap.h cfile.h cbitmap.h \ cwindowsbitmap.h cscriptparser.h .SUFFIXES: .cpp .o all: $(BIN) .cpp.o: $(CXX) $(CXXFLAGS) -c $< -o $@ $(OBJS): $(HEADERS) $(BIN): $(OBJS) $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) debug: @$(MAKE) all "DEBUGFLAGS=-DDEBUG -g" clean: rm -f $(OBJS) $(BIN) run test: all @./test/test.sh .PHONY: clean # vim600: noet sw=8 ts=8