Mercurial > hg > forks > pwpunix
annotate 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 |
rev | line source |
---|---|
23 | 1 include ../config.mak |
2 | |
38
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
3 TARGETS= |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
4 ifeq ($(XTARGET),sdl) |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
5 TARGETS += zaxplay$(BINEXT) |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
6 endif |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
7 ifeq ($(XTARGET),sdl-win32) |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
8 TARGETS += zaxplay$(BINEXT) |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
9 endif |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
10 ifeq ($(XTARGET),linux) |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
11 TARGETS += orig$(BINEXT) |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
12 endif |
23 | 13 |
14 all: $(TARGETS) | |
15 | |
16 include ../Makefile.inc | |
17 | |
27 | 18 zaxplay$(BINEXT): zaxplay.c |
23 | 19 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) |
20 | |
38
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
21 |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
22 orig: orig.c |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
23 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) |
678924af9149
Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents:
27
diff
changeset
|
24 |