root/src/json-lib/Makefile.in

Revision 06601a4dda0346aeef2da039407fd01010951a73, 0.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

cleanup makefile deps and targets. instead of not noticing subdeps, we now much build twice if explicity toplevel targets (noitd/stratcond) are used. Better, but not best.

  • Property mode set to 100644
Line 
1 CC=@CC@
2 CPPFLAGS=@CPPFLAGS@
3 CFLAGS=@CFLAGS@
4 DEPFLAGS=@DEPFLAGS@
5 LDFLAGS=@LDFLAGS@
6 AR=@AR@
7 RANLIB=@RANLIB@
8 LIBS=@LIBS@
9 INSTALL=@INSTALL@
10
11 top_srcdir=@top_srcdir@
12
13 OBJS=arraylist.o debug.o json_object.o json_tokener.o json_util.o \
14         linkhash.o printbuf.o
15
16 all:    libnoitjson.a
17
18 libnoitjson.a:  $(OBJS)
19         @rm -f $@
20         @$(AR) cq $@ $(OBJS)
21         @echo "- archiving $@"
22         @$(RANLIB) $@
23
24 .c.o:
25         @$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
26         @echo "- compiling $<"
27
28 clean:
29         rm -f *.o libnoitjson.a
30
31 distclean:      clean
32         rm -f Makefile
33
34 Makefile.dep:
35         $(CC) -I. -I.. $(CPPFLAGS) $(CFLAGS) $(DEPFLAGS) *.c > Makefile.dep
36         $(top_srcdir)/buildtools/culldeps.sh Makefile.dep
37
38 include Makefile.dep
39
Note: See TracBrowser for help on using the browser.