Subversion Repositories Spectranet

[/] [trunk/] [z88dk/] [socklib/] [Makefile] - Blame information for rev 499

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 79 winston
# Makefile to build the Spectranet C library.
2 499 winston
SRCGEN = ../scripts/makesources.pl
3 79 winston
LIBNAME = libsocket
4 146 winston
PASMFILES = libsocket.lst
5
NPASMFILES = libsocket_np.lst
6
PLIBNAME = libsocket
7
NPLIBNAME = libsocket_np
8 82 winston
TESTOUT = testsocks.bin
9 147 winston
NPTESTOUT = testsocks_np.bin
10 82 winston
CFLAGS = +zx -vn -I./include -O2 -preserve
11 89 winston
COBJS = testsocks.o testclient.o nonmuxserver.o muxserver.o testudpserv.o
12 147 winston
NPCOBJS = np_testsocks.o testclient.o nonmuxserver.o muxserver.o testudpserv.o
13 82 winston
CLIBS = -lndos -llibsocket
14 147 winston
NPCLIBS = -lndos -llibsocket_np
15 79 winston
 
16 397 winston
all:    plib nplib
17 82 winston
 
18 146 winston
plib:   $(PASMFILES)
19
        $(SRCGEN)
20
        $(ASSEMBLER) $(ASMFLAGS) -x$(PLIBNAME) @$(PASMFILES)
21 79 winston
 
22 146 winston
nplib:  $(NPASMFILES)
23
        $(SRCGEN)
24
        $(ASSEMBLER) $(ASMFLAGS) -x$(NPLIBNAME) @$(NPASMFILES)
25
 
26 82 winston
test:   $(COBJS)
27
        $(CC) $(CFLAGS) -o $(TESTOUT) $(COBJS) $(CLIBS)
28
 
29 147 winston
nptest: $(NPCOBJS)
30
        $(CC) $(CFLAGS) -o $(NPTESTOUT) $(NPCOBJS) $(NPCLIBS)
31 483 winston
 
32
install:
33
        $(CP) *.lib $(Z80_OZFILES)/clibs
34
        $(CP) -r ./include $(Z80_OZFILES)/../
35 147 winston
 
36 397 winston
include ../make.inc