view 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
line wrap: on
line source

include ../config.mak

TARGETS=
ifeq ($(XTARGET),sdl)
TARGETS += zaxplay$(BINEXT)
endif
ifeq ($(XTARGET),sdl-win32)
TARGETS += zaxplay$(BINEXT)
endif
ifeq ($(XTARGET),linux)
TARGETS += orig$(BINEXT)
endif

all: $(TARGETS)

include ../Makefile.inc

zaxplay$(BINEXT): zaxplay.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)


orig: orig.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)