-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (35 loc) · 962 Bytes
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
all: c64 apple2 atari
ifeq ($(shell echo),)
NULLDEV = /dev/null
else
NULLDEV = nul:
endif
ZIPCOMMENT := $(shell git rev-parse --short HEAD 2>$(NULLDEV))
ifeq ($(words $(ZIPCOMMENT)),1)
ZIPCOMMENT := https://github.com/cc65/ip65/commits/$(ZIPCOMMENT)
else
ZIPCOMMENT := N/A
endif
%.zip:
zip $@ $^
echo $(ZIPCOMMENT) | zip -z $@
c64: ip65-c64.zip
apple2: ip65-apple2.zip
atari: ip65-atari.zip
ip65-c64.zip: ip65.h ip65.lib ip65_tcp.lib ip65_c64.lib ip65.d64
ip65-apple2.zip: ip65.h ip65.lib ip65_tcp.lib ip65_apple2.lib ip65.dsk
ip65-atari.zip: ip65.h ip65.lib ip65_tcp.lib ip65_atari.lib ip65_atarixl.lib ip65.atr
ip65.h:
cp inc/$@ $@
ip65.lib ip65_tcp.lib:
make -C ip65 $@
cp ip65/$@ $@
ip65_c64.lib ip65_apple2.lib ip65_atari.lib ip65_atarixl.lib:
make -C drivers $@
cp drivers/$@ $@
ip65.%:
make -C apps $@
cp apps/$@ $@
clean:
make -C apps clean
-rm -f *.h *.lib *.d64 *.dsk *.atr *.zip