diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-16 14:45:03 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-16 15:58:16 +0100 |
commit | b55234a74d17503ca2fecb273cfcc44549f9e43e (patch) | |
tree | 321ef06dec317ff0e92011e1d680965e058b10fc /src/Makefile | |
parent | Unlist redshift/issues/846: rejected on technical grounds (diff) | |
download | redshift-ng-b55234a74d17503ca2fecb273cfcc44549f9e43e.tar.gz redshift-ng-b55234a74d17503ca2fecb273cfcc44549f9e43e.tar.bz2 redshift-ng-b55234a74d17503ca2fecb273cfcc44549f9e43e.tar.xz |
Major refactoring and some fixes
Signed-off-by: Mattias Andrée <m@maandree.se>
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) |