Commit: 7bd55aad1bed56487ed5780617a9adfaa7762c1a Parent: 63d7d4f772f4c2961335ac24ef54e541bb4b4d9f Author: Randy Palamar Date: Fri, 17 Feb 2023 17:03:17 -0700 don't put unnecessary flags in CFLAGS and LDFLAGS it makes it harder for packagers Diffstat:
M | Makefile | | | 4 | ++-- |
M | config.mk | | | 4 | ++-- |
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile @@ -10,12 +10,12 @@ config.h: cp config.def.h config.h .c.o: - $(CC) $(CFLAGS) -o $@ -c $< + $(CC) $(CFLAGS) $(CPPFLAGS) $(INCS) -o $@ -c $< $(OBJ): config.h status: $(OBJ) - $(CC) -o $@ $(OBJ) $(LDFLAGS) + $(CC) -o $@ $(OBJ) $(LIBS) $(LDFLAGS) clean: rm -f $(OBJ) status diff --git a/config.mk b/config.mk @@ -14,5 +14,5 @@ INCS = -I$(X11INC) -I/usr/local/include LIBS = -L$(X11LIB) -L/usr/local/lib -lmpdclient -lX11 -lasound CPPFLAGS = -D_POSIX_C_SOURCE -CFLAGS = -O2 -std=c99 -Wall -pedantic $(CPPFLAGS) $(INCS) -LDFLAGS = $(LIBS) +CFLAGS = -O2 -std=c99 -Wall -pedantic +LDFLAGS = -s