diff options
author | Bert <ber.t@gmx.com> | 2011-09-13 10:08:35 +0200 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-09-13 10:08:35 +0200 |
commit | 81cfbf171dfd11c6f8a4d277159ee077b5ca0255 (patch) | |
tree | c971f0309dd388985cab2a94f3a7fb3452318400 /Makefile | |
parent | 255dd5bbcda9de790e543ef8c658cfab942ab71f (diff) |
Renamed XLIBS to config, added -D/-l options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -24,27 +24,27 @@ options: @echo "CC $<" @$(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $< -$(OBJ) XLIBS: Makefile config.h +$(OBJ) config: Makefile config.h -XLIBS: XLIBS.c +config: config.c @$(CC) $(CFLAGS) -o $@ $@.c config.h: @echo "creating $@ from config.def.h" @cp config.def.h $@ -sxiv: $(OBJ) XLIBS +sxiv: $(OBJ) config @echo "CC -o $@" - @$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $$(./XLIBS) + @$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $$(./config -l) clean: @echo "cleaning" - @rm -f $(OBJ) XLIBS sxiv sxiv-$(VERSION).tar.gz + @rm -f $(OBJ) config sxiv sxiv-$(VERSION).tar.gz dist: clean @echo "creating dist tarball" @mkdir -p sxiv-$(VERSION) - @cp LICENSE Makefile README.md config.def.h sxiv.1 $(SRC) XLIBS.c \ + @cp LICENSE Makefile README.md config.def.h sxiv.1 $(SRC) config.c \ sxiv-$(VERSION) @tar -cf sxiv-$(VERSION).tar sxiv-$(VERSION) @gzip sxiv-$(VERSION).tar |