home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 44
/
Amiga_Dream_44.iso
/
RiscPc
/
programmation
/
headerg.zi
/
HeaderGen
/
Skeleton
< prev
Wrap
Text File
|
1995-06-22
|
2KB
|
75 lines
# Project: ??????
# Local Paths (change as required): ------------------------------------------------
LIBRARIES_DIR = ADFS:$.Languages.Libraries
PROJECTS_DIR = ADFS:$.Projects
# Toolflags: -----------------------------------------------------------------------
LinkFlags = -o $@
CCflags = -c -Wn $(EXTdirs)
ObjAsmFlags = -APCS NONE -Stamp -quit -CloseExec $(EXTdirs)
LibFileFlags = -c -o $@
SqueezeFlags = $@
.SUFFIXES: .c .s .h .hdr
# Modules: -------------------------------------------------------------------------
CCobjects = o.?????? o.?????? o.?????? o.??????
CCheaders = h.?????? h.?????? h.?????? h.??????
ASMobjects = o.?????? o.?????? o.?????? o.??????
ASMheaders = hdr.?????? hdr.?????? hdr.?????? hdr.??????
EXTobjects = \
$(LIBRARIES_DIR).GraphLib.o.GraphLib \
$(LIBRARIES_DIR).Clib.o.stubs \
$(LIBRARIES_DIR).Risc_OSlib.o.Risc_OSlib
EXTdirs = \
-I$(LIBRARIES_DIR).GraphLib \
-I$(LIBRARIES_DIR).Clib \
-I$(LIBRARIES_DIR).Risc_OSlib
# Final target: --------------------------------------------------------------------
@.??????: \
$(ASMobjects) $(CCobjects) $(EXTobjects) $(ASMheaders) $(CCheaders)
|
| Building final target
link $(LinkFlags) $(CCobjects) $(ASMobjects) $(EXTobjects)
# Rule Patterns --------------------------------------------------------------------
.c.o:; |
| Compiling $<
cc $(CCflags) $< -o $@
.s.o:; |
| Assembling $<
objasm $(ObjAsmFlags) -from $< -to $@
.c.h:; |
| Generating C header of $<
HeaderGen -CtoC $< $@
.s.hdr:; |
| Generating ASM header of $<
HeaderGen -ASMtoASM $< $@ -ExtIdent $*_
.s.h:; |
| Generating C header of $<
HeaderGen -ASMtoC $< $@ -ExtIdent $*_
.h.hdr:; |
| Converting C header $< to ASM
HeaderGen -CtoASM $< $@ $(EXTdirs)