From 2943b14334acb599cd2363a3688be062ab5fd87a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 4 Mar 2025 20:06:52 +0100 Subject: Cleanup, fix/update sv.po, begin use of plain make and renaming project to redshift-ng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/Makefile | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/Makefile (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..802fdea --- /dev/null +++ b/src/Makefile @@ -0,0 +1,53 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +OBJ =\ + colorramp.o\ + config-ini.o\ + gamma-drm.o\ + gamma-dummy.o\ + gamma-randr.o\ + gamma-vidmode.o\ + hooks.o\ + location-geoclue2.o\ + location-manual.o\ + options.o\ + pipeutils.o\ + redshift.o\ + signals.o\ + solar.o\ + systemtime.o + +HDR = $(OBJ:.o=.h) + +PACKAGE_STRING = redshift-ng 1.13 + +all: redshift +$(OBJ): $(HDR) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) -D'PACKAGE_STRING="$(PACKAGE_STRING)"' + +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