diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-11 01:38:44 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-11 01:38:44 -0700 |
| commit | 2baadd9ba00a84b3daa5c7028e7129223fbd5b1d (patch) | |
| tree | adfc8af77a7edd866f28e0853aa6d7460b7abb86 /Makefile | |
| parent | 05ad83f8f08a342042e4cd05abbee733833c40a7 (diff) | |
Tightening up the makefile flags and vim modelines
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,7 @@ PREFIX=/usr/local -CFLAGS=-Wall -Wextra -pedantic -Wmissing-prototypes -Wstrict-prototypes +CFLAGS=-std=c99 -D_XOPEN_SOURCE=500 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L +CWARN=-Wall -Wpedantic -Wextra -Wno-unknown-pragmas -Wno-missing-field-initializers\ + -Wno-padded -Wsign-conversion -Wno-missing-noreturn -Wno-cast-qual -Wtype-limits LDFLAGS= G ?= O ?= -O3 @@ -10,10 +12,10 @@ OBJFILES=$(CFILES:.c=.o) all: bpeg .c.o: - cc -c $(CFLAGS) $(G) $(O) -o $@ $< + cc -c $(CFLAGS) $(CWARN) $(G) $(O) -o $@ $< bpeg: $(OBJFILES) bpeg.c - cc $(CFLAGS) $(G) $(O) -o $@ $^ + cc $(CFLAGS) $(CWARN) $(G) $(O) -o $@ $^ clean: rm -f bpeg $(OBJFILES) |
