home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
cdrom
/
compactplayer
/
source
/
makefile
< prev
next >
Wrap
Makefile
|
1995-12-28
|
3KB
|
73 lines
MODULE= CompactPlayer
GST= compactplayer.gst
CC= SC
CFLAGS= DEBUG=LINE OPT
ASM= asm
AFLAGS=
CATCOMP= flexcat
LD= slink
LDFLAGS= SMALLCODE SMALLDATA NOICONS BATCH
LDSTRIP= STRIPDEBUG
SRC= $(MODULE).c cdpanel.c autoinit.c scsi.c cd.c MainWindow.c readargs.c ListWindow.c ConfWindow.c ARexx.c listbrowser.c
ASMSRC= gadgetbox.asm
OBJS= $(MODULE)_Cat.o CompactPlayer.o cdpanel.o autoinit.o scsi.o cd.o MainWindow.o readargs.o ListWindow.o ConfWindow.o ARexx.o listbrowser.o gadgetbox.o
LIBS= LIB:sc.lib LIB:amiga.lib LIB:debug.lib
ARCHIVE= DLOAD:$(MODULE).lha
INCLUDE=
all: $(MODULE)
cdpanel.o: cdpanel.c $(INCLUDE)
$(CC) $(CFLAGS) $<
$(MODULE): $(MODULE).d
$(LD) $< TO $@ $(LDSTRIP)
$(MODULE).d: $(GST) $(OBJS)
$(CC) $(OBJS) LINK TO $@ $(LDFLAGS) $(LIBS)
$(MODULE).gst: gst.c sysheaders.h
$(CC) $(CFLAGS) gst.c NOGST MAKEGST $@ NOOBJNAME
.c.o: $(GST)
$(CC) $(CFLAGS) $*.c
$(MODULE)_Cat.c: $(MODULE).cd
$(CATCOMP) $(MODULE).cd $(MODULE)_Cat.c=C_c_V21.sd $(MODULE)_Cat.h=C_h.sd
$(MODULE)_Cat.o: $(MODULE)_Cat.c
$(CC) $(CFLAGS) $*.c
.asm.o:
$(ASM) $(AFLAGS) $*.asm
lha: $(ARCHIVE)
$(ARCHIVE): $(MODULE)
-delete $@ ram:compactplayer all quiet force
-makedir ram:CompactPlayer ram:CompactPlayer/Classes ram:CompactPlayer/Classes/Gadgets ram:CompactPlayer/Classes/Images ram:Disks ram:CompactPlayer/Fonts ram:CompactPlayer/Source ram:CompactPlayer/C
slink CompactPlayer to ram:CompactPlayer/CompactPlayer NODEBUG
copy CompactPlayer(.info|.doc*) Install(%|.info) ram:compactplayer quiet
copy *.h *.c *.cd *.asm SCOPTIONS makefile ram:CompactPlayer/Source
copy Drawer.info RAM:CompactPlayer.info
copy sys:classes/gadgets/(button|listbrowser|string).gadget ram:compactplayer/Classes/gadgets quiet
copy sys:classes/gadgets/layout.gadget.000 ram:compactplayer/Classes/gadgets/layout.gadget quiet
copy sys:classes/gadgets/layout.gadget ram:compactplayer/Classes/gadgets/layout.gadget.020 quiet
copy sys:classes/images/(bevel|glyph|drawlist|label).image ram:compactplayer/Classes/images quiet
copy sys:classes/window.class sys:classes/arexx.class ram:compactplayer/Classes
copy work:misc/compactplayer/disks/id* ram:disks quiet
copy FONTS:CompactFont* FONTS:LCD* RAM:CompactPlayer/fonts all
copy C:CheckAssign ram:CompactPlayer/C
lha -raz a ram:CompactPlayer/Disks.lha ram:Disks
-delete ram:Disks all quiet force
lha -raZ a $@ ram:CompactPlayer ram:CompactPlayer.info