Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbatt!decuac!gouldsd!mjranum From: mjranum@gouldsd.UUCP Newsgroups: comp.sources.d,rec.games.empire Subject: Re: Problem with empire 1.1 Message-ID: <495@gouldsd.UUCP> Date: Wed, 22-Apr-87 08:51:05 EST Article-I.D.: gouldsd.495 Posted: Wed Apr 22 08:51:05 1987 Date-Received: Fri, 24-Apr-87 00:02:13 EST References: <3613@drutx.UUCP> <1029@crash.CTS.COM> <491@speedy.mcnc.UUCP> <3952@think.UUCP> Organization: Gould Electronics, Landover MD. Lines: 313 Keywords: Problems with Makefiles Xref: utgpu comp.sources.d:595 rec.games.empire:72 Summary: makefile fixes > Can anyone more knowledgeable than I make a new set of makefiles > that actually work under BSD? It's kinda stupid to do it by hand... > --Erik The problem with the makefiles was that the explicit pathnames ../../[blah] were used instead of the $(LIB) expansions. here are mine for the top level, commands and empsubs: If you do a diff on yours and this one, you'll see what I changed and that may help. If that doesn't, do a 'make -p' and it will expand all the pathnames for you. RTFM. make(1). ----------------------------cut here------------------------- : #the following files are in this bundle: (Use them wisely) # Makefile.commands Makefile.empsubs Makefile.toplevel # To unbundle - sh this file echo unbundling: Makefile.commands Makefile.empsubs Makefile.toplevel echo unbundling Makefile.commands if [ -f Makefile.commands ] ; then echo cannot unbundle Makefile.commands - file exists already exit 1 fi cat >Makefile.commands <<'End of Makefile.commands' CFLAGS=-c HDRDIR=../hdrs INSDIR=../_unix.O LIB=$(INSDIR)/empcom.a LIBSRC= \ acce.c \ add.c \ assa.c \ atta.c \ boar.c \ buil.c \ cens.c \ chan.c \ chec.c \ coll.c \ cont.c \ coun.c \ decl.c \ defe.c \ deli.c \ desi.c \ diss.c \ enli.c \ fire.c \ flee.c \ fly.c \ fore.c \ gran.c \ info1.c \ info2.c \ ledg.c \ lend.c \ load.c \ look.c \ map.c \ mine.c \ move.c \ nati.c \ navi.c \ news.c \ offe.c \ powe.c \ rada.c \ rea.c \ real.c \ repa.c \ rout.c \ set.c \ shi.c \ spy.c \ tele.c \ tend.c \ torp.c \ trad.c \ trea.c \ turn.c \ upda.c \ vers.c \ vote.c \ weat.c $(LIB):: $(HDRDIR)/empdef.h @touch *.c; # header change implies source change $(LIB):: $(LIBSRC) $(CC) $(CFLAGS) -I$(HDRDIR) $? @ar r $(LIB) *.o @ranlib $(LIB); # 4.2 archive needs table of contents @echo $(LIB) is now up to date clobber: .PRECIOUS: $(LIB) End of Makefile.commands echo done unbundling Makefile.commands echo unbundling Makefile.empsubs if [ -f Makefile.empsubs ] ; then echo cannot unbundle Makefile.empsubs - file exists already exit 1 fi cat >Makefile.empsubs <<'End of Makefile.empsubs' CFLAGS=-c HDRDIR=../hdrs INSDIR=../_unix.O LIB=$(INSDIR)/empsub.a LIBSRC= \ atoip.c \ atopi.c \ chkok.c \ cleared.c \ cname.c \ cnumb.c \ copy.c \ damage.c \ erlog.c \ getbit.c \ getele.c \ getloan.c \ getlogn.c \ getmysect.c \ getmyship.c \ getnat.c \ getrel.c \ getsect.c \ getship.c \ getshno.c \ getsno.c \ getstar.c \ getstri.c \ gettre.c \ idist.c \ landgun.c \ landorsea.c \ mailbox.c \ max127.c \ mtch.c \ myeuid.c \ myruid.c \ natarg.c \ neigh.c \ nreport.c \ nxtsct.c \ nxtshp.c \ onearg.c \ plur.c \ pr.c \ prdate.c \ prmptrd.c \ pslsin.c \ resetuid.c \ round.c \ same.c \ sargs.c \ sigsave.c \ sread.c \ tfact.c \ trechk.c \ ttyn.c \ update.c \ wethr.c \ wu.c \ xwrap.c \ xytoa.c HDRDEP= \ chkok.c \ cleared.c \ cname.c \ cnumb.c \ damage.c \ erlog.c \ getele.c \ getloan.c \ getmysect.c \ getmyship.c \ getnat.c \ getrel.c \ getsect.c \ getship.c \ getsno.c \ gettre.c \ landgun.c \ landorsea.c \ mailbox.c \ mtch.c \ natarg.c \ neigh.c \ nreport.c \ nxtsct.c \ nxtshp.c \ pr.c \ prdate.c \ sargs.c \ sread.c \ tfact.c \ trechk.c \ update.c \ wethr.c \ wu.c $(LIB):: $(HDRDIR)/empdef.h @touch $(HDRDEP); # header change implies source change $(LIB):: $(LIBSRC) $(CC) $(CFLAGS) -I$(HDRDIR) $? @ar r $(LIB) *.o @ranlib $(LIB); # 4.2 archive needs table of contents @echo $(LIB) is now up to date clobber: rm -f $(LIB) .PRECIOUS: $(LIB) End of Makefile.empsubs echo done unbundling Makefile.empsubs echo unbundling Makefile.toplevel if [ -f Makefile.toplevel ] ; then echo cannot unbundle Makefile.toplevel - file exists already exit 1 fi cat >Makefile.toplevel <<'End of Makefile.toplevel' MAKE=make LIBDIR=./_unix.O BINDIR=./BIN EMPGLB=$(LIBDIR)/empglb.o EMPDIS=$(LIBDIR)/empdis.o EMPSUB=$(LIBDIR)/empsub.a EMPCOM=$(LIBDIR)/empcom.a EMPS=\ $(BINDIR)/emp1 \ $(BINDIR)/emp2 \ $(BINDIR)/emp3 \ $(BINDIR)/emp4 \ $(BINDIR)/emp5 \ $(BINDIR)/emp7 \ empn all: $(LIBDIR) $(BINDIR) $(EMPGLB) $(EMPDIS) $(EMPSUB) $(EMPCOM) \ empire empcre \ $(BINDIR)/empfix empn @echo All done! $(EMPGLB): FRC @echo EMPGLB: @cd EMPGLB; $(MAKE) empglb.o: $(EMPGLB) $(EMPDIS): FRC @echo EMPDIS: @cd EMPDIS; $(MAKE) empdis.o: $(EMPDIS) $(EMPSUB): FRC @echo EMPSUBS: @cd EMPSUBS; $(MAKE) empsub.a: $(EMPSUB) $(EMPCOM): FRC @echo COMMANDS: @cd COMMANDS; $(MAKE) empcom.a: $(EMPCOM) empire: FRC @echo EMPIRE: @cd EMPIRE; $(MAKE) empcre: FRC @echo EMPCRE: @cd EMPCRE; $(MAKE) $(BINDIR)/empfix: empfix empfix: FRC @echo EMPFIX: @cd EMPFIX; $(MAKE) $(EMPS): FRC @echo EMPN: $@; # 4.2 change $(@F) to $@ @cd EMPN; $(MAKE) $@; # 4.2 change $(@F) to $@ emp1: $(BINDIR)/emp1 emp2: $(BINDIR)/emp2 emp3: $(BINDIR)/emp3 emp4: $(BINDIR)/emp4 emp5: $(BINDIR)/emp5 emp7: $(BINDIR)/emp7 FRC: $(LIBDIR): $(LIBDIR) mkdir $(LIBDIR) $(BINDIR): $(BINDIR) mkdir $(BINDIR) End of Makefile.toplevel echo done unbundling Makefile.toplevel # end of the bundle !! -- Copyright, 1987 - Anarchist Software Foundation - ALL RIGHTS RESERVED In reproducing this document in any form, the licensee (you) agrees to pay the ASF 5$/copy distributed, and to admit that software law is a subject better left for lawyers and slimy nerds. Live Free or die !