From 037b945a9f253b97faffc02d8475574e75203516 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 27 Mar 2025 18:36:26 +0100 Subject: one dir per subproject MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- redshift/Makefile | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 redshift/Makefile (limited to 'redshift/Makefile') diff --git a/redshift/Makefile b/redshift/Makefile new file mode 100644 index 0000000..417d001 --- /dev/null +++ b/redshift/Makefile @@ -0,0 +1,66 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + + +VERSION_STRING = redshift-ng 1.13 + + +OBJ =\ + backend-direct.o\ + colour.o\ + config.o\ + config-ini.o\ + gamma.o\ + gamma-coopgamma.o\ + gamma-drm.o\ + gamma-dummy.o\ + gamma-quartz.o\ + gamma-randr.o\ + gamma-vidmode.o\ + gamma-wingdi.o\ + hooks.o\ + location.o\ + location-geoclue2.o\ + location-manual.o\ + location-geofile.o\ + location-timezone.o\ + redshift.o\ + signals.o\ + util.o + + +CPPFLAGS_STRINGS =\ + -D'PACKAGE="$(PACKAGE)"'\ + -D'VERSION_STRING="$(VERSION_STRING)"'\ + -D'LOCALEDIR="$(LOCALEDIR)"' + + +all: redshift +$(OBJ): common.h arg.h + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) $(CPPFLAGS_STRINGS) + +redshift: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) + +install: redshift + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- redshift "$(DESTDIR)$(PREFIX)/bin/" + cp -- redshift.1 "$(DESTDIR)$(MANPREFIX)/man1/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/redshift" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/redshift.1" + +clean: + -rm -f -- *.o *.a *.lo *.su + -rm -f -- redshift + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean -- cgit v1.2.3-70-g09d2