home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
comm
/
amitcp-3.0ß2.lha
/
AmiTCP
/
src
/
devs
/
rhslip
/
Smakefile
< prev
Wrap
Makefile
|
1994-05-12
|
3KB
|
151 lines
# $Id: Smakefile,v 38.3 1994/05/12 15:22:15 jraja Exp $
#
# Smakefile for rh(c)slip.device
#
# Author: ppessi <Pekka.Pessi@hut.fi>
#
# Copyright © 1992, 1993 Pekka Pessi
# Copyright © 1993 Olaf Seibert
# Copyright © 1992 Commodore-Amiga, Inc.
#
# Created : Thu Jan 21 16:21:09 1993 ppessi
# Last modified: Thu May 12 17:13:19 1994 jraja
#
DEST = amitcp:
MODNAME = rhslip
MODNAME_C = rhcslip
DEVICE = rhslip.device rhcslip.device
INSTALL = copy dates all nopro
MKDIR = makedir
RCSREV = rcsrev asm
CC = SC
#
# DEF="RCS_ID_C=//" if you do not want RCS idents
#
DEFS =
OPTFLAGS = OPTIMIZE NoDebug
DEBUGFLAGS = NoOptimize DEBUG=SF
# LC options were -b0 -. -ms -me -O -v -rr -cfistqmcu -d1
# -me was unknown optimization option
CFLAGS = Data=FarOnly NoVersion OptTime \
NoStkChk Parms=Reg NMInc StrMerge StrEq MCCons ComNest \
UnSChar Debug=F IDir=NetInclude: \
$(OPTFLAGS) \
$(DEFS)
AS = SC
AFLAGS = IDIR=netinclude: IDIR=INCLUDE: #-csy -i include: -o
LD = SC link
LDFLAGS = $(CFLAGS) NOSTARTUP SMALLCODE SMALLDATA MAP MXREF
STRIPFLAGS = ND NOICONS
CSOURCE_C = device_funcs.c cslip.c
CSOURCE = device_funcs.c
ASOURCE = slip_device.asm endcode.asm
CONFIG = rhslip0.config
STARTUP =
OBJECTS = slip_device.o slip-device_funcs.o endcode.o
OBJECTS_C = cslip_device.o cslip-device_funcs.o cslip.o endcode.o
LIBS = LIB:amiga.lib
.SUFFIXES: .asm .c .o .test .device
all: SCOPTIONS $(DEVICE)
#
# Build the load files
#
.test.device:
Slink $*.test TO $*.device $(STRIPFLAGS)
rhslip.device: SCOPTIONS rhslip.test
rhslip.test: $(OBJECTS) $(LIBS)
$(LD) $(STARTUP) $(OBJECTS) TO $@ LIB $(LIBS) $(LDFLAGS)
rhcslip.device: SCOPTIONS rhcslip.test
rhcslip.test: $(OBJECTS_C) $(LIBS)
$(LD) $(STARTUP) $(OBJECTS_C) TO $@ LIB $(LIBS) $(LDFLAGS)
#
# Default rules...
#
.c.o:
-@Delete FORCE QUIET $*.o
$(CC) $(CFLAGS) $*.c
.asm.o:
$(AS) $(AFLAGS) $*.asm
#
# All dependencies...
#
slip_device.o : slip_device.asm slip_device.i rhslip_rev.i
cslip_device.o : cslip_device.asm slip_device.i rhcslip_rev.i
cslip-device_funcs.o : device_funcs.c slip_device.h cslip.h
$(CC) DEF=CSLIP=1 $(CFLAGS) device_funcs.c objname $@
slip-device_funcs.o : device_funcs.c slip_device.h
$(CC) DEF=CSLIP=0 $(CFLAGS) device_funcs.c objname $@
cslip.o : cslip.h
endcode.o : endcode.asm
#
# Do not use some weird SCOPTIONS, use ours
#
SCOPTIONS: Smakefile
copy TO $@ <FROM <
$(CFLAGS)
<
#
# Bump Device revision
#
$(MODNAME)_rev.i: device_funcs.c
-$(RCSREV) $(MODNAME) $<
$(MODNAME_C)_rev.i: device_funcs.c
-$(RCSREV) $(MODNAME_C) $<
#
# Install
#
install: $(DEVICE) $(DEST)export/Devs/Networks $(DEST)export/Env/Sana2
$(INSTALL) $(DEVICE) $(DEST)export/Devs/Networks
$(INSTALL) $(CONFIG) $(DEST)export/Env/Sana2
$(DEST)export/Devs/Networks: $(DEST)export/Devs
-$(MKDIR) $@
$(DEST)export/Devs: $(DEST)export
-$(MKDIR) $@
$(DEST)export/Env/Sana2: $(DEST)export/Env
-$(MKDIR) $@
$(DEST)export/Env: $(DEST)export
-$(MKDIR) $@
$(DEST)export:
-$(MKDIR) $@
#
# Clean up directory
#
clean:
-Delete $(OBJECTS) \#?.(map|lnk|o|test)
cleaner: clean
-Delete $(DEVICE)