corrected Makefiles
This commit is contained in:
parent
e4424a38c5
commit
75d52f0a3e
2 changed files with 18 additions and 18 deletions
|
@ -148,7 +148,7 @@ cmp: Main
|
||||||
-cmp $(CURRDIR)/cemcom.1 $(EMHOME)/man/em_cemcom.6
|
-cmp $(CURRDIR)/cemcom.1 $(EMHOME)/man/em_cemcom.6
|
||||||
|
|
||||||
pr:
|
pr:
|
||||||
@pr makefile make.* tab.c char.tab Parameters $(HSRC) $(STRSRC) $(LSRC) $(CSRC)
|
@pr Makefile make.* tab.c char.tab Parameters $(HSRC) $(STRSRC) $(LSRC) $(CSRC)
|
||||||
|
|
||||||
opr:
|
opr:
|
||||||
make pr | opr
|
make pr | opr
|
||||||
|
@ -167,7 +167,7 @@ longnames: $(SRC) $(HFILES)
|
||||||
|
|
||||||
# entry points not to be used directly
|
# entry points not to be used directly
|
||||||
|
|
||||||
Cfiles: hfiles LLfiles $(GENCFILES) $(GSRC) $(GHSRC) makefile
|
Cfiles: hfiles LLfiles $(GENCFILES) $(GSRC) $(GHSRC) Makefile
|
||||||
echo $(SRC) $(HFILES) > Cfiles
|
echo $(SRC) $(HFILES) > Cfiles
|
||||||
|
|
||||||
hfiles: ./make.hfiles Parameters
|
hfiles: ./make.hfiles Parameters
|
||||||
|
@ -210,27 +210,27 @@ estack.h: make.allocd
|
||||||
util.h: make.allocd
|
util.h: make.allocd
|
||||||
|
|
||||||
depend: Cfiles
|
depend: Cfiles
|
||||||
sed '/^#AUTOAUTO/,$$d' makefile >makefile.new
|
sed '/^#AUTOAUTO/,$$d' Makefile >Makefile.new
|
||||||
echo '#AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO' >>makefile.new
|
echo '#AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO' >>Makefile.new
|
||||||
$(MKDEP) $(SRC) | sed 's/\.c:/.o:/' >>makefile.new
|
$(MKDEP) $(SRC) | sed 's/\.c:/.o:/' >>Makefile.new
|
||||||
mv makefile makefile.old
|
mv Makefile Makefile.old
|
||||||
mv makefile.new makefile
|
mv Makefile.new Makefile
|
||||||
|
|
||||||
#INCLINCLINCLINCL
|
#INCLINCLINCLINCL
|
||||||
|
|
||||||
$(CURRDIR)/main: $(OBJ) $(CURRDIR)/makefile
|
$(CURRDIR)/main: $(OBJ) $(CURRDIR)/Makefile
|
||||||
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(LIBS) -o $(CURRDIR)/main
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(LIBS) -o $(CURRDIR)/main
|
||||||
size $(CURRDIR)/main
|
size $(CURRDIR)/main
|
||||||
|
|
||||||
$(CURRDIR)/emain: $(OBJ) $(CURRDIR)/makefile
|
$(CURRDIR)/emain: $(OBJ) $(CURRDIR)/Makefile
|
||||||
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(ELIBS) -o $(CURRDIR)/emain
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(ELIBS) -o $(CURRDIR)/emain
|
||||||
size $(CURRDIR)/emain
|
size $(CURRDIR)/emain
|
||||||
|
|
||||||
$(CURRDIR)/omain: $(OBJ) $(CURRDIR)/makefile
|
$(CURRDIR)/omain: $(OBJ) $(CURRDIR)/Makefile
|
||||||
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(OLIBS) -o $(CURRDIR)/omain
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(OLIBS) -o $(CURRDIR)/omain
|
||||||
size $(CURRDIR)/omain
|
size $(CURRDIR)/omain
|
||||||
|
|
||||||
$(CURRDIR)/cemain: $(OBJ) $(CURRDIR)/makefile
|
$(CURRDIR)/cemain: $(OBJ) $(CURRDIR)/Makefile
|
||||||
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(CELIBS) -o $(CURRDIR)/cemain
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(CELIBS) -o $(CURRDIR)/cemain
|
||||||
size $(CURRDIR)/cemain
|
size $(CURRDIR)/cemain
|
||||||
|
|
||||||
|
|
|
@ -165,11 +165,11 @@ util.h: make.allocd
|
||||||
OBJ = $(COBJ) $(LOBJ) $(GOBJ)
|
OBJ = $(COBJ) $(LOBJ) $(GOBJ)
|
||||||
SRC = $(CSRC) $(LCSRC) $(GCSRC)
|
SRC = $(CSRC) $(LCSRC) $(GCSRC)
|
||||||
|
|
||||||
main: $(OBJ) Makefile
|
main: $(OBJ) Makefile.erik
|
||||||
$(CC) $(COPTIONS) $(LFLAGS) $(OBJ) $(LIBS) -o main
|
$(CC) $(COPTIONS) $(LFLAGS) $(OBJ) $(LIBS) -o main
|
||||||
size main
|
size main
|
||||||
|
|
||||||
emain: $(OBJ) Makefile
|
emain: $(OBJ) Makefile.erik
|
||||||
$(CC) $(COPTIONS) $(LFLAGS) $(OBJ) $(ELIBS) -o emain
|
$(CC) $(COPTIONS) $(LFLAGS) $(OBJ) $(ELIBS) -o emain
|
||||||
size emain
|
size emain
|
||||||
|
|
||||||
|
@ -196,11 +196,11 @@ listobjects:
|
||||||
@echo $(OBJ)
|
@echo $(OBJ)
|
||||||
|
|
||||||
depend: cfiles
|
depend: cfiles
|
||||||
sed '/^#AUTOAUTO/,$$d' Makefile >Makefile.new
|
sed '/^#AUTOAUTO/,$$d' Makefile.erik >Makefile.erik.new
|
||||||
echo '#AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO' >>Makefile.new
|
echo '#AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO' >>Makefile.erik.new
|
||||||
$(MKDEP) $(SRC) | sed 's/\.c:/.o:/' >>Makefile.new
|
$(MKDEP) $(SRC) | sed 's/\.c:/.o:/' >>Makefile.erik.new
|
||||||
mv Makefile Makefile.old
|
mv Makefile.erik Makefile.erik.old
|
||||||
mv Makefile.new Makefile
|
mv Makefile.erik.new Makefile.erik
|
||||||
|
|
||||||
xref:
|
xref:
|
||||||
ctags -x `grep "\.[ch]" files`|sed "s/).*/)/">Xref
|
ctags -x `grep "\.[ch]" files`|sed "s/).*/)/">Xref
|
||||||
|
|
Loading…
Reference in a new issue