summaryrefslogtreecommitdiffstats
path: root/ue1/imgsynth/Makefile
blob: 71f57d7a9793d41d4cf3e0744daf85886292555c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Makefile for imgsynth
# Author:	Manuel Mausz (0728348)
# Created:	14.04.2009

CC=		g++
LD=		$(CC)
DEBUGFLAGS=
CFLAGS=		-O -ansi -pedantic-errors -Wall -Wno-long-long $(DEBUGFLAGS)
LDFLAGS=
LIBS=		-lboost_program_options

BIN=		imgsynth
OBJS=		cpixelformat_24.o cbitmap.o cscriptparser.o imgsynth.o
HEADERS=	cpixelformat.h cpixelformat_24.h cfile.h cbitmap.h cscriptparser.h

.SUFFIXES: .cpp .o

all: $(BIN)

.cpp.o:
	$(CC) $(CFLAGS) -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