Subversion Repositories Spectranet

[/] [trunk/] [z88dk/] [socklib/] [Makefile] - Rev 499

Compare with Previous | Blame | View Log

# Makefile to build the Spectranet C library.
SRCGEN = ../scripts/makesources.pl
LIBNAME = libsocket
PASMFILES = libsocket.lst
NPASMFILES = libsocket_np.lst
PLIBNAME = libsocket
NPLIBNAME = libsocket_np
TESTOUT = testsocks.bin
NPTESTOUT = testsocks_np.bin
CFLAGS = +zx -vn -I./include -O2 -preserve
COBJS = testsocks.o testclient.o nonmuxserver.o muxserver.o testudpserv.o
NPCOBJS = np_testsocks.o testclient.o nonmuxserver.o muxserver.o testudpserv.o
CLIBS = -lndos -llibsocket
NPCLIBS = -lndos -llibsocket_np

all:    plib nplib

plib:   $(PASMFILES)
        $(SRCGEN)
        $(ASSEMBLER) $(ASMFLAGS) -x$(PLIBNAME) @$(PASMFILES)

nplib:  $(NPASMFILES)
        $(SRCGEN)
        $(ASSEMBLER) $(ASMFLAGS) -x$(NPLIBNAME) @$(NPASMFILES)

test:   $(COBJS)
        $(CC) $(CFLAGS) -o $(TESTOUT) $(COBJS) $(CLIBS)

nptest: $(NPCOBJS)
        $(CC) $(CFLAGS) -o $(NPTESTOUT) $(NPCOBJS) $(NPCLIBS)
        
install:
        $(CP) *.lib $(Z80_OZFILES)/clibs
        $(CP) -r ./include $(Z80_OZFILES)/../

include ../make.inc

Compare with Previous | Blame | View Log