diff options
Diffstat (limited to 'ue2/imgsynth2/Makefile')
| -rw-r--r-- | ue2/imgsynth2/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ue2/imgsynth2/Makefile b/ue2/imgsynth2/Makefile new file mode 100644 index 0000000..cbf3d33 --- /dev/null +++ b/ue2/imgsynth2/Makefile | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | # Makefile for imgsynth2 | ||
| 2 | # Author: Guenther Neuwirth (0626638), Manuel Mausz (0728348) | ||
| 3 | # Created: 26.04.2009 | ||
| 4 | |||
| 5 | CC= g++ | ||
| 6 | LD= $(CC) | ||
| 7 | DEBUGFLAGS= -DNDEBUG | ||
| 8 | CFLAGS= -O -ansi -pedantic-errors -Wall $(DEBUGFLAGS) | ||
| 9 | LDFLAGS= | ||
| 10 | LIBS= -lboost_program_options | ||
| 11 | |||
| 12 | BIN= imgsynth2 | ||
| 13 | OBJS= cpixelformat_bgr24.o cpixelformat_bgr555.o \ | ||
| 14 | cbitmap.o cscriptparser.o imgsynth2.o | ||
| 15 | HEADERS= cpixelformat.h cpixelformat_bgr24.h cpixelformat_bgr555.h \ | ||
| 16 | cfile.h cbitmap.h cscriptparser.h | ||
| 17 | |||
| 18 | .SUFFIXES: .cpp .o | ||
| 19 | |||
| 20 | all: $(BIN) | ||
| 21 | |||
| 22 | .cpp.o: | ||
| 23 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 24 | |||
| 25 | $(OBJS): $(HEADERS) | ||
| 26 | |||
| 27 | $(BIN): $(OBJS) | ||
| 28 | $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) | ||
| 29 | |||
| 30 | debug: | ||
| 31 | @$(MAKE) all "DEBUGFLAGS=-DDEBUG -g" | ||
| 32 | |||
| 33 | clean: | ||
| 34 | rm -f $(OBJS) $(BIN) | ||
| 35 | |||
| 36 | run test: all | ||
| 37 | @./test/test.sh | ||
| 38 | |||
| 39 | .PHONY: clean | ||
| 40 | |||
| 41 | # vim600: noet sw=8 ts=8 | ||
