ctemp

Set color temperature
git clone git://git.akobets.xyz/ctemp
Log | Files | Refs | README | LICENSE

commit b409b46704d8a74f366ebc6dbe21ea1065db4bd7
parent b89e927d3c6cf2c016ed18a4e8e1b2e5ecb54e9c
Author: Artem Kobets <artem@akobets.xyz>
Date:   Mon, 24 Aug 2020 10:58:22 +0300

build system

Diffstat:
MMakefile | 4++--
Mconfig.mk | 13+++++++------
2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile @@ -10,14 +10,14 @@ OBJ = $(SRC:.c=.o) all: ctemp .c.o: - $(CC) -o $@ -c $< $(CFLAGS) + $(CC) -o $@ -c $< $(ALL_CFLAGS) $(ALL_CPPFLAGS) ctemp.o: arg.h $(OBJ): config.mk ctemp: $(OBJ) - $(CC) -o $@ $(OBJ) $(LDFLAGS) + $(CC) -o $@ $(OBJ) $(ALL_LDFLAGS) clean: rm -f ctemp $(OBJ) diff --git a/config.mk b/config.mk @@ -1,4 +1,4 @@ -VERSION = 0.1.4 +VERSION = 0.1.5 # Customize below to fit your system @@ -37,12 +37,13 @@ X_FLAGS = $(X_FLAGS_$(ENABLE_X)) INCS = $(DRM_INCS) $(QUARTZ_INCS) $(X_INCS) LIBS = $(DRM_LIBS) $(QUARTZ_INCS) $(X_LIBS) -CPPFLAGS = -DVERSION=\"$(VERSION)\" \ + +ALL_CFLAGS = -std=c99 -pedantic -Wall $(INCS) $(CFLAGS) +ALL_CPPFLAGS = -DVERSION=\"$(VERSION)\" \ -D_POSIX_C_SOURCE=200809L \ -D_XOPEN_SOURCE=700 \ - $(DRM_FLAGS) $(QUARTZ_FLAGS) $(X_FLAGS) - -CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS) -LDFLAGS = $(LIBS) + $(DRM_FLAGS) $(QUARTZ_FLAGS) $(X_FLAGS) \ + $(CPPFLAGS) +ALL_LDFLAGS = $(LIBS) $(LDFLAGS) CC = cc