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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 include ../config.mak
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 all: $(TARGETS)
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 include ../Makefile.inc
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17
27
0eba27fee6da Const fix.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
18 zaxplay$(BINEXT): zaxplay.c
23
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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