]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
The only certainly working rule is "ltmain.in", so it is the only default
authorAndreas Jaeger <aj@suse.de>
Sat, 12 May 2001 14:45:57 +0000 (14:45 +0000)
committerBruce Korb <bkorb@gnu.org>
Sat, 12 May 2001 14:45:57 +0000 (14:45 +0000)
exe/ltmain.mk [new file with mode: 0644]

diff --git a/exe/ltmain.mk b/exe/ltmain.mk
new file mode 100644 (file)
index 0000000..dd64696
--- /dev/null
@@ -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