Check-in [608a304b3b]
Overview
Comment:Fixed makefile to work with BSD make
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 608a304b3bb340e2eb878fd3da867fb3a61e3ee3
User & Date: rkeene on 2004-10-29 03:25:01
Other Links: manifest | tags
Context
2004-10-29
04:02
Updated documentation added INSTALL document libconfig 0.1.0 check-in: 1bde205ce1 user: rkeene tags: trunk, 0.1.0
03:25
Fixed makefile to work with BSD make check-in: 608a304b3b user: rkeene tags: trunk
03:10
Fixed some warnings. libconfig 0.0.8 check-in: 58c3554ca1 user: rkeene tags: trunk, 0.0.8
Changes

Modified Makefile.in from [63e7c50530] to [b2690bfed6].

    31     31   BINS =
    32     32   # The following two lines need to be kept syncronised.
    33     33   OBJS = libconfig.o conf_space.o conf_section.o conf_apache.o conf_colon.o conf_equal.o conf_xml.o @LIBOBJS@
    34     34   SHOBJS = libconfig_shr.o conf_space_shr.o conf_section_shr.o conf_apache_shr.o conf_colon_shr.o conf_equal_shr.o conf_xml_shr.o @SHLIBOBJS@
    35     35   
    36     36   all: $(LIBS) $(BINS)
    37     37   libconfig.$(SHOBJEXT): $(SHOBJS)
    38         -	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJFLAGS) $(SHOBJLDFLAGS) -o $@ $^
           38  +	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJFLAGS) $(SHOBJLDFLAGS) -o $@ $?
    39     39   
    40     40   libconfig.$(AREXT): $(OBJS)
    41         -	$(AR) rcu $@ $^
           41  +	$(AR) rcu $@ $?
    42     42   	-$(RANLIB) $@
    43     43   
    44     44   libconfig.o: libconfig.c compat.h win32.h config.h libconfig.h
    45     45   libconfig_shr.o: libconfig.c compat.h win32.h config.h libconfig.h
    46     46   	$(CC) $(CPPFLAGS) $(CFLAGS) $(SHOBJFLAGS) -c -o $@ libconfig.c
    47     47   
    48     48   %_shr.o: %.c
    49         -	$(CC) $(CPPFLAGS) $(CFLAGS) $(SHOBJFLAGS) -c -o $@ $^
           49  +	$(CC) $(CPPFLAGS) $(CFLAGS) $(SHOBJFLAGS) -c -o $@ $?
    50     50   
    51     51   libconfig.h: libconfig.h.in
    52         -	cat $^ | $(CPP) $(CPPFLAGS) - | grep -v '^#' | grep -v '^ *$$' | sed 's/^!/#  /g;s/__BLANK_LINE__//' > $@
           52  +	cat $? | $(CPP) $(CPPFLAGS) - | grep -v '^#' | grep -v '^ *$$' | sed 's/^!/#  /g;s/__BLANK_LINE__//' > $@
    53     53   
    54     54   test-lc: $(LIBS) test-lc.c
    55         -	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(filter %.c, $^) $(LDFLAGS) -Wl,-R -Wl,. -L. -lconfig
           55  +	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(filter %.c, $?) $(LDFLAGS) -Wl,-R -Wl,. -L. -lconfig
    56     56   
    57     57   .PHONY: clean distclean install
    58     58   clean:
    59     59   	rm -f *.o $(BINS) $(LIBS) libconfig.h *~ test-lc
    60     60   distclean: clean
    61     61   	rm -f Makefile config.h config.status config.log lc_geterrno.3 lc_process.3 lc_register_var.3 lc_geterrstr.3 lc_register_callback.3
    62     62