Mercurial > hg > xemacs-beta
comparison pkg-src/tree-x/Makefile.in.in @ 173:8eaf7971accc r20-3b13
Import from CVS: tag r20-3b13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:49:09 +0200 |
parents | 929b76928fce |
children | f53b5ca2e663 |
comparison
equal
deleted
inserted
replaced
172:a38aed19690b | 173:8eaf7971accc |
---|---|
32 ld_switch_all=@ld_switch_all@ | 32 ld_switch_all=@ld_switch_all@ |
33 ld_libs_all=@ld_libs_all@ | 33 ld_libs_all=@ld_libs_all@ |
34 | 34 |
35 build_top=../.. | 35 build_top=../.. |
36 | 36 |
37 cflags = -I${build_top}/src $(CPPFLAGS) $(c_switch_all) | |
38 ldflags = $(ld_switch_all) -lXaw $(ld_libs_all) | |
39 | |
37 #ifdef USE_GNU_MAKE | 40 #ifdef USE_GNU_MAKE |
38 vpath %.c @srcdir@ | 41 vpath %.c @srcdir@ |
39 vpath %.h @srcdir@ | 42 vpath %.h @srcdir@ |
40 #else | 43 #else |
41 VPATH=@srcdir@ | 44 VPATH=@srcdir@ |
49 objs = draw.o tree.o input.o dissolve.o dbl.o intf.o $(usleep_objs) | 52 objs = draw.o tree.o input.o dissolve.o dbl.o intf.o $(usleep_objs) |
50 | 53 |
51 all : xoobr | 54 all : xoobr |
52 | 55 |
53 xoobr: $(objs) | 56 xoobr: $(objs) |
54 $(CC) $(CFLAGS) $(objs) $(ldflags) -o $@ | 57 $(CC) $(CFLAGS) $(LDFLAGS) $(objs) $(ldflags) -o $@ |
55 | |
56 cflags = $(CFLAGS) -I${build_top}/src $(CPPFLAGS) $(c_switch_all) | |
57 ldflags = $(LDFLAGS) $(ld_switch_all) -lXaw $(ld_libs_all) | |
58 | 58 |
59 .c.o : | 59 .c.o : |
60 ${CC} -c $(cflags) $< | 60 $(CC) $(CFLAGS) $(cflags) -c $< |
61 | 61 |
62 install: $(progs) | 62 install: $(progs) |
63 ../../lib-src/make-path ${archlibdir} | 63 ../../lib-src/make-path ${archlibdir} |
64 for file in $(progs); do \ | 64 for file in $(progs); do \ |
65 (cd ../.. && $(INSTALL_PROGRAM) pkg-src/tree-x/$${file} ${archlibdir}/$${file}) ; \ | 65 (cd ../.. && $(INSTALL_PROGRAM) pkg-src/tree-x/$${file} ${archlibdir}/$${file}) ; \ |
74 $(RM) Makefile Makefile.in TAGS | 74 $(RM) Makefile Makefile.in TAGS |
75 realclean: distclean | 75 realclean: distclean |
76 extraclean: distclean | 76 extraclean: distclean |
77 $(RM) *~ \#* | 77 $(RM) *~ \#* |
78 | 78 |
79 distclean: clean | |
80 $(RM) Makefile.in Makefile | |
81 | |
82 size: | 79 size: |
83 wc *.c *.h | 80 wc *.c *.h |
84 | 81 |
85 ## Dependencies | 82 ## Dependencies |
86 dbl.o: dbl.h | 83 dbl.o: dbl.h |