diff options
| author | Victor Mignot <victor@vmignot.fr> | 2026-02-19 17:35:15 +0100 |
|---|---|---|
| committer | Victor Mignot <victor@vmignot.fr> | 2026-03-04 17:25:15 +0100 |
| commit | b1ddcd79af4f7319688a427eb1800c429ff5f8d2 (patch) | |
| tree | 956df9d5c41e355088d7e3f3ee25209e763f3dc2 /Makefile | |
| parent | 82938d522273eefd51b136f037810fa6b963a096 (diff) | |
| download | futiles-b1ddcd79af4f7319688a427eb1800c429ff5f8d2.tar.gz | |
Do not overwrite basic CFLAGS
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,6 @@ CC := gcc -CFLAGS := -std=c99 -Wpedantic -Wall -Wextra +CFLAGS := +CFLAGS_EXTRA := -std=c99 -Wpedantic -Wall -Wextra LDFLAGS := BIN := futiles @@ -8,10 +9,10 @@ OBJS := $(patsubst %.c, %.o, $(wildcard src/*.c)) all: $(BIN) $(BIN): $(OBJS) - $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ + $(CC) -o $@ $(CFLAGS) $(CFLAGS_EXTRA) $(LDFLAGS) $^ src/%.o: src/%.c - $(CC) -c -o $@ $(CFLAGS) $< + $(CC) -c -o $@ $(CFLAGS) $(CFLAGS_EXTRA) $< clean: rm -f $(BIN) $(OBJS) |
