annotate pwpzax/Makefile @ 82:1013256040d5

Clean up build process.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 19 Feb 2013 00:39:19 +0200
parents 678924af9149
children
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
82
1013256040d5 Clean up build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 38
diff changeset
18
1013256040d5 Clean up build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 38
diff changeset
19 zaxplay$(BINEXT): zaxplay.o
1013256040d5 Clean up build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 38
diff changeset
20 $(CC) -o $@ $< $(LDFLAGS)
23
c3622b53a23e Clean up the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
38
678924af9149 Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents: 27
diff changeset
22
678924af9149 Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents: 27
diff changeset
23 orig: orig.c
82
1013256040d5 Clean up build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 38
diff changeset
24 $(CC) -o $@ $< $(LDFLAGS)
38
678924af9149 Buildsystem changes, build zaxplay or orig only when the target probably allows it.
Matti Hamalainen <ccr@tnsp.org>
parents: 27
diff changeset
25