Mercurial > hg > forks > pwpunix
comparison pwpzax/Makefile @ 38:678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 24 May 2010 02:19:13 +0300 |
parents | 0eba27fee6da |
children | 1013256040d5 |
comparison
equal
deleted
inserted
replaced
37:561fa061caf6 | 38:678924af9149 |
---|---|
1 include ../config.mak | 1 include ../config.mak |
2 | 2 |
3 TARGETS=zaxplay$(BINEXT) | 3 TARGETS= |
4 ifeq ($(XTARGET),sdl) | |
5 TARGETS += zaxplay$(BINEXT) | |
6 endif | |
7 ifeq ($(XTARGET),sdl-win32) | |
8 TARGETS += zaxplay$(BINEXT) | |
9 endif | |
10 ifeq ($(XTARGET),linux) | |
11 TARGETS += orig$(BINEXT) | |
12 endif | |
4 | 13 |
5 all: $(TARGETS) | 14 all: $(TARGETS) |
6 | 15 |
7 include ../Makefile.inc | 16 include ../Makefile.inc |
8 | 17 |
9 zaxplay$(BINEXT): zaxplay.c | 18 zaxplay$(BINEXT): zaxplay.c |
10 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) | 19 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) |
11 | 20 |
21 | |
22 orig: orig.c | |
23 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) | |
24 |