Added Makefile

This commit is contained in:
ceriel 1988-08-18 13:15:16 +00:00
parent bb01ac81fd
commit 057ee4e5cb
4 changed files with 70 additions and 0 deletions

View file

@ -1,2 +1,3 @@
as_assemble
Makefile
obj_assemble

View file

@ -0,0 +1,29 @@
EM=../../..
CEG = $(EM)/lib/ceg
ASS = $(CEG)/assemble
ASLIST = assemble.c block_as.c
OBJLIST = assemble.c block_as.c const.h
all:
install:
-mkdir $(CEG)
-mkdir $(ASS)
-mkdir $(ASS)/as_assemble
-mkdir $(ASS)/obj_assemble
for i in $(ASLIST) ; do cp as_assemble/$$i $(ASS)/as_assemble/$$i ; done
for i in $(OBJLIST) ; do cp obj_assemble/$$i $(ASS)/obj_assemble/$$i ; done
cmp:
-for i in $(ASLIST) ; do cp as_assemble/$$i $(ASS)/as_assemble/$$i ; done
-for i in $(OBJLIST) ; do cp obj_assemble/$$i $(ASS)/obj_assemble/$$i ; done
pr:
@for i in $(ASLIST) ; do pr as_assemble/$$i ; done
@for i in $(OBJLIST) ; do pr obj_assemble/$$i ; done
opr:
make pr | opr
clean:

View file

@ -1,2 +1,3 @@
as_back
obj_back
Makefile

39
util/ceg/ce_back/Makefile Normal file
View file

@ -0,0 +1,39 @@
EM=../../..
CEG = $(EM)/lib/ceg
BACK = $(CEG)/ce_back
ASLIST = Makefile back.h bottom.c bss.c con1.c con2.c con4.c const.h \
do_close.c do_open.c end_back.c gen1.c gen2.c gen4.c header.h \
init_back.c reloc1.c reloc2.c reloc4.c rom1.c rom2.c rom4.c \
set_global.c set_local.c switchseg.c symboldef.c text1.c \
text2.c text4.c
OBJLIST = Makefile back.h con2.c con4.c data.c data.h do_close.c do_open.c \
end_back.c extnd.c gen1.c gen2.c gen4.c hash.h header.h \
init_back.c label.c memory.c misc.c mysprint.c output.c \
reloc1.c reloc2.c reloc4.c relocation.c rom2.c rom4.c \
set_global.c set_local.c switchseg.c symboldef.c symtable.c \
text2.c text4.c
all:
install:
-mkdir $(CEG)
-mkdir $(BACK)
-mkdir $(BACK)/as_back
-mkdir $(BACK)/obj_back
for i in $(ASLIST) ; do cp as_back/$$i $(BACK)/as_back/$$i ; done
for i in $(OBJLIST) ; do cp obj_back/$$i $(BACK)/obj_back/$$i ; done
cmp:
-for i in $(ASLIST) ; do cmp as_back/$$i $(BACK)/as_back/$$i ; done
-for i in $(OBJLIST) ; do cmp obj_back/$$i $(BACK)/obj_back/$$i ; done
pr:
@for i in $(ASLIST) ; do pr as_back/$$i ; done
@for i in $(OBJLIST) ; do pr obj_back/$$i ; done
opr:
make pr | opr
clean: