X-Git-Url: http://git.tuebingen.mpg.de/?p=lopsub.git;a=blobdiff_plain;f=Makefile;h=548c96ff0e6298e29d8f247940a4f446e6757d35;hp=f7e19fb8901d98dbfd90965f521b892bc45cdc0e;hb=HEAD;hpb=73d2280b56e07b3115c14deaa994114a462afd33 diff --git a/Makefile b/Makefile index f7e19fb..89cbc2e 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) @@ -97,6 +99,7 @@ lopsubex_objs := lopsubex.o lopsubex.lsg.o $(liblopsub_objs) LLS_CFLAGS := -g -fPIC STRICT_CFLAGS := -Wall +STRICT_CFLAGS += -Werror-implicit-function-declaration $(lsg_objs) $(liblopsub_objs) $(lopsubex_objs): %.o: %.c lopsubgen.o config_file.o: @@ -113,6 +116,9 @@ lopsubgen: $(lsg_objs) $(CC) -Wall -g -o $@ $(lsg_objs) $(REALNAME): $(liblopsub_objs) $(CC) --shared -Wl,-soname,liblopsub.so.$(MAJOR_VERSION) -o $@ $^ +liblopsub.a: $(liblopsub_objs) + $(AR) -rcs $@ $^ + lopsubex: $(lopsubex_objs) $(REALNAME) $(CC) -Wall -g -o $@ $(lopsubex_objs) @@ -148,4 +154,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