From: Andreas Jaeger Date: Sat, 12 May 2001 14:45:57 +0000 (+0000) Subject: The only certainly working rule is "ltmain.in", so it is the only default X-Git-Tag: binary-mlb~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c8c3a8462b73b016866c8913401ed22d364e49e;p=thirdparty%2Flibtool.git The only certainly working rule is "ltmain.in", so it is the only default --- diff --git a/exe/ltmain.mk b/exe/ltmain.mk new file mode 100644 index 000000000..dd64696a8 --- /dev/null +++ b/exe/ltmain.mk @@ -0,0 +1,42 @@ + +SRC = ltmain.c ltopts.c ltstr.c ltcompile.c ltversion.c +OBJ = $(SRC:.c=.o) +GENED = ltmain.in ltstr.[ch] ltopts.[ch] +CC = cc -I/usr/local/include -g + +default : ltmain.in + +ltmain.o : ltmain.c ltopts.c ltstr.c ltconfig.x + $(CC) -c -o ltmain.o ltmain.c + +ltmain : $(OBJ) + $(CC) -o ltmain $(OBJ) -lopts + +clean : + rm -f lt*.o ltmain $(GENED) *~ + +STRDEFS = ltstr.def \ + lt_base.def lt_clean.def lt_compile.def lt_execute.def \ + lt_finish.def lt_install.def lt_link.def + +ltmain.in : $(STRDEFS) ltmain.tpl + autogen -T ltmain.tpl ltstr.def + +ltopts.c : ltopts.def + autogen ltopts.def + +ltopts.o : ltopts.c + $(CC) -c -o ltopts.o -I/usr/local/include ltopts.c + +ltstr.c : $(STRDEFS) ltstr.tpl + autogen -T ltstr.tpl ltstr.def + +gen : ltmain.in ltstr.c ltopts.c + +zip : + @ [ -f ltmain ] && mv -f ltmain ltmain.sav ; \ + mkdir ltmain ; \ + cp -fp *.def *.tpl ltmain.c ltmain.mk ltmain/ + tar cvf - ltmain | gzip --best > ltmain.tgz + @ rm -rf ltmain ; \ + if [ -f ltmain.sav ] ; then mv -f ltmain.sav ltmain ; fi