1 |
|
|
2 |
SRC = ltmain.c ltopts.c ltstr.c ltcompile.c ltexe.c ltversion.c |
SRC = ltmain.c ltopts.c ltstr.c ltcompile.c ltexe.c ltversion.c |
3 |
OBJ = $(SRC:.c=.o) |
OBJ = $(SRC:.c=.o) |
4 |
GENED = ltmain.in ltstr.[ch] ltopts.[ch] |
GENED = ltmain.in ltstr.[ch] ltopts.[ch] |
5 |
CC = cc -I/usr/local/include -g |
CC = cc -I/usr/local/include -g |
6 |
|
TXTTPL = base-txt.tpl clean-txt.tpl compile-txt.tpl execute-txt.tpl \ |
7 |
|
finish-txt.tpl install-txt.tpl link-txt.tpl |
8 |
|
|
9 |
default : ltmain.in |
default : ltmain.in |
10 |
|
|
17 |
clean : |
clean : |
18 |
rm -f lt*.o ltmain $(GENED) *~ |
rm -f lt*.o ltmain $(GENED) *~ |
19 |
|
|
20 |
STRDEFS = ltstr.def \ |
ltmain.in : $(TXTTPL) 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 ltmacros.tpl |
|
21 |
autogen -T ltmain.tpl -l ltmacros.tpl ltstr.def |
autogen -T ltmain.tpl -l ltmacros.tpl ltstr.def |
22 |
|
|
23 |
|
ltstr.c : ltstr.def ltstr.tpl ltmacros.tpl |
24 |
|
autogen -T ltstr.tpl -l ltmacros.tpl ltstr.def |
25 |
|
|
26 |
|
ltstr.h : ltstr.c |
27 |
|
@-: |
28 |
|
|
29 |
ltopts.c : ltopts.def |
ltopts.c : ltopts.def |
30 |
autogen ltopts.def |
autogen ltopts.def |
31 |
|
|
32 |
|
ltopts.h : ltopts.h |
33 |
|
@-: |
34 |
|
|
35 |
ltopts.o : ltopts.c |
ltopts.o : ltopts.c |
36 |
$(CC) -c -o ltopts.o -I/usr/local/include ltopts.c |
$(CC) -c -o ltopts.o -I/usr/local/include ltopts.c |
37 |
|
|
|
ltstr.c : $(STRDEFS) ltstr.tpl ltmacros.tpl |
|
|
autogen -T ltstr.tpl -l ltmacros.tpl ltstr.def |
|
|
|
|
38 |
gen : ltmain.in ltstr.c ltopts.c |
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 |
|