From 18b7bc62379d13525520531a0aac94affbef1a9c Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 1 Oct 2019 22:08:22 -0400 Subject: add room for LDFLAGS and specifying LIBS as a macro --- src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 7813a7f..3de2a68 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,6 +3,8 @@ all: bosix CFLAGS=-Wall -Wextra -Wpedantic +LDFLAGS= +LIBS=-ll -ly OBJS= ar.o asa.o \ basename.o \ @@ -25,7 +27,7 @@ OBJS= ar.o asa.o \ wc.o who.o write.o bosix: $(OBJS) - $(CC) -o $@ $(OBJS) -ll -ly + $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) sh.o: sh.c mains.h builtins.h -- cgit v1.2.1