Subversion Repositories Spectranet

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 139 winston
# Makefile to build the Spectranet C library.
2
 
3 499 winston
SRCGEN = ../scripts/makesources.pl
4 148 winston
PLIBNAME = libspectranet
5
NPLIBNAME = libspectranet_np
6
PASMFILES = libspectranet.lst
7
NPASMFILES = libspectranet_np.lst
8 139 winston
TESTOUT = testlibsn.bin
9 149 winston
BASOUT = testbas.bin
10 139 winston
CFLAGS = +zx -vn -I./include -O2 -preserve
11
COBJS = testlibsn.o
12 149 winston
BASOBJS = testbasext.o
13 139 winston
CLIBS = -lndos -llibspectranet
14
 
15 397 winston
all:    plib nplib
16 139 winston
 
17 148 winston
plib:   $(PASMFILES)
18
        $(SRCGEN)
19
        $(ASSEMBLER) $(ASMFLAGS) -x$(PLIBNAME) @$(PASMFILES)
20 139 winston
 
21 148 winston
nplib:  $(NPASMFILES)
22
        $(SRCGEN)
23
        $(ASSEMBLER) $(ASMFLAGS) -x$(NPLIBNAME) @$(NPASMFILES)
24
 
25 139 winston
test:   $(COBJS)
26
        $(CC) $(CFLAGS) -o $(TESTOUT) $(COBJS) $(CLIBS)
27
 
28 149 winston
basext: $(BASOBJS)
29
        $(CC) $(CFLAGS) -o $(BASOUT) $(BASOBJS) $(CLIBS)
30 483 winston
 
31
 
32
install:
33
        $(CP) *.lib $(Z80_OZFILES)/clibs
34
        $(CP) -r ./include $(Z80_OZFILES)/../
35 149 winston
 
36 397 winston
include ../make.inc