Subversion Repositories NedoOS

Rev

Rev 922 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 922 Rev 930
Line 1... Line 1...
1
# Supported environments:
1
NAME		= master.com slave.com
2
#   GNU/Linux
2
OBJECTS		=
3
#   Windows NT
3
SOURCES		= main.asm fontgfx zx.fnt
4
 
-
 
5
include ../../_sdk/common.mk
4
SJASMPLUS	= ../../../tools/sjasmplus
6
 
-
 
7
# no trailing "/"
-
 
8
INSTALLDIR	:= $(INSTALLDIR)nedogame
5
INSTALLDIR	= ../../../release/nedogame/netsnake
9
 
-
 
10
.PHONY: all install clean
-
 
11
 
6
 
12
all: net1.com net2.com
7
all: ${NAME} ${SOURCES}
13
 
-
 
14
net1.com: main.asm \
-
 
15
 ../../_sdk/sys_h.asm \
-
 
16
 ../../_sdk/sysdefs.asm \
-
 
17
 fontgfx \
-
 
18
 zx.fnt
-
 
19
	$(AS) $(AFLAGS) -DCLIENT=1 $<
-
 
20
 
8
 
21
net2.com: main.asm \
9
snake.com: main.asm
22
 ../../_sdk/sys_h.asm \
-
 
23
 ../../_sdk/sysdefs.asm \
-
 
24
 fontgfx \
-
 
25
 zx.fnt
-
 
26
	$(AS) $(AFLAGS) -DCLIENT=0 $<
-
 
27
 
-
 
28
install: \
-
 
29
 $(INSTALLDIR) \
-
 
30
 $(INSTALLDIR)/net1.com \
-
 
31
 $(INSTALLDIR)/net2.com
-
 
32
 
-
 
33
$(INSTALLDIR):
-
 
34
	$(MKDIR) $@
-
 
35
 
-
 
36
$(INSTALLDIR)/net1.com: net1.com
10
	${SJASMPLUS} --nologo master.asm
37
	$(CP) $< $@
-
 
38
 
-
 
39
$(INSTALLDIR)/net2.com: net2.com
11
	${SJASMPLUS} --nologo slave.asm
40
	$(CP) $< $@
-
 
41
 
12
 
42
clean:
13
clean: 
43
	$(RM) net1.com net2.com
14
	rm -f ${NAME} ${OBJECTS}
-
 
15
install: all
-
 
16
	cp ${NAME} ${INSTALLDIR}
-
 
17
install-doc: ${DOC} 
-
 
18
#	cp ${DOC} ${INSTALLDIR}/doc