Subversion Repositories SvarDOS

Rev

Rev 616 | Rev 675 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#
# Makefile for DOS 16-bit (OpenWatcom 1.9)
#

CFLAGS = -j -ml -0 -bt=dos -wx -we -d0 -ox -dNOLFN -i=watt32\inc
LIB = watt32\lib\wattcpwl.lib

all: pkgnet.exe

release: pkgnet.exe .symbolic
        mkdir bin
        mkdir appinfo
        copy pkgnet.exe bin
        copy pkgnet.lsm appinfo
        zip -9krDX -m pkgnet.zip bin appinfo
        zip -9krDX pkgnet.src Makefile *.c *.h pkgnet.lsm watt32

pkgnet.exe: pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj
        wcl -lr -k4096 $(LIB) pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe

pkgnet.obj: pkgnet.c
        *wcc $(CFLAGS) pkgnet.c

trim.obj: ..\..\pkg\trunk\trim.c
        *wcc $(CFLAGS) ..\..\pkg\trunk\trim.c

lsm.obj: ..\..\pkg\trunk\lsm.c
        *wcc $(CFLAGS) ..\..\pkg\trunk\lsm.c

helpers.obj: ..\..\pkg\trunk\helpers.c
        *wcc $(CFLAGS) ..\..\pkg\trunk\helpers.c

net.obj: net.c
        *wcc $(CFLAGS) net.c

unchunk.obj: unchunk.c
        *wcc $(CFLAGS) unchunk.c

unchtest.obj: unchtest.c
        *wcc $(CFLAGS) unchtest.c

unchtest.exe: unchtest.obj unchunk.obj
        wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe

clean: .symbolic
        del *.obj
        del pkgnet.exe