aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
blob: 57a8d4acf007149eda33c275b51765d386814019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CC	= gcc
CFLAGS	= -O -g -W -Wall
LDFLAGS	= 
ifneq (,$(findstring _NT,$(shell uname -s)))
O	  = obj
X	  = .exe
else
O	  = o
X	  =
endif

all : abcprintd$(X) z80asm z80dis$(X)

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

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

.PHONY: z80asm
z80asm :
	$(MAKE) -C $@ all

clean :
	rm -f abcprintd$(X) z80dis$(X) *.o
	$(MAKE) -C z80asm clean