X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile;h=e8fb7c0b3743a8655e74a7e66f441efea02dd382;hb=refs%2Fheads%2Fmaster;hp=548c96ff0e6298e29d8f247940a4f446e6757d35;hpb=45901057b4103eeb745e080521678c0e43e0eca1;p=lopsub.git diff --git a/Makefile b/Makefile index 548c96f..6fbca9c 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,8 @@ INSTALL := install GZIP := gzip -fn9 ZCAT := zcat +CC += -ffile-prefix-map=$(CURDIR)=. + dummy != $(M4) /dev/null || printf 'failed' ifeq ($(dummy), failed) $(error m4 is required to build this package) @@ -111,9 +113,13 @@ lsg1.o: lsg.c lsg.h lopsubgen-stage1: $(lsg1_objs) $(CC) -Wall -g $(lsg1_objs) -o $@ lopsubgen: $(lsg_objs) - $(CC) -Wall -g -o $@ $(lsg_objs) + $(CC) -Wall -g $(LDFLAGS) -o $@ $(lsg_objs) $(REALNAME): $(liblopsub_objs) - $(CC) --shared -Wl,-soname,liblopsub.so.$(MAJOR_VERSION) -o $@ $^ + $(CC) --shared -Wl,-soname,liblopsub.so.$(MAJOR_VERSION) \ + $(LDFLAGS) -o $@ $^ +liblopsub.a: $(liblopsub_objs) + $(AR) -rcs $@ $^ + lopsubex: $(lopsubex_objs) $(REALNAME) $(CC) -Wall -g -o $@ $(lopsubex_objs) @@ -149,4 +155,4 @@ clean: distclean: clean $(RM) *.lsg.c *.lsg.h lopsubgen.c config_file.c lopsubgen-stage1 \ lopsub.h lopsub.7 lopsub-suite.5 version.c - +-include Makefile.local