diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile index 164ed4f..36bf18b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,32 +4,39 @@ CONFIGFILE = config.mk include $(CONFIGFILE) -PACKAGE_STRING = redshift-ng 1.13 +PACKAGE_STRING = $(PACKAGE) 1.13 OBJ =\ - colourramp.o\ + colour.o\ + config.o\ config-ini.o\ + gamma.o\ gamma-coopgamma.o\ gamma-drm.o\ gamma-dummy.o\ gamma-randr.o\ gamma-vidmode.o\ hooks.o\ + location.o\ location-geoclue2.o\ location-manual.o\ - options.o\ - pipeutils.o\ redshift.o\ signals.o\ - systemtime.o + util.o + + +CPPFLAGS_STRINGS =\ + -D'PACKAGE="$(PACKAGE)"'\ + -D'PACKAGE_STRING="$(PACKAGE_STRING)"'\ + -D'LOCALEDIR="$(LOCALEDIR)"' all: redshift $(OBJ): common.h .c.o: - $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) -D'PACKAGE_STRING="$(PACKAGE_STRING)"' + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) $(CPPFLAGS_STRINGS) redshift: $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) |