diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-11 01:28:06 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-11 01:28:06 -0700 |
| commit | 2a11acc66738d6300bfa90a22adcd540371060f3 (patch) | |
| tree | 4966c9864434da3e43594f0d86dd9362f367fd8e /Makefile | |
| parent | 8a846230f7b4269af08a6b6496ebd28c4ff459ba (diff) | |
Major overhaul refactor restructuring
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -1,14 +1,21 @@ -PREFIX= +PREFIX=/usr/local CFLAGS=-Wall -Wextra -pedantic -Wmissing-prototypes -Wstrict-prototypes +LDFLAGS= G ?= O ?= -O3 +CFILES=compiler.c grammar.c utils.c vm.c +OBJFILES=$(CFILES:.c=.o) + all: bpeg -clean: - rm -f bpeg +.c.o: + cc -c $(CFLAGS) $(G) $(O) -o $@ $< -bpeg: bpeg.c bpeg.h utils.h - cc $(CFLAGS) $(G) $(O) $< -o $@ +bpeg: $(OBJFILES) bpeg.c + cc $(CFLAGS) $(G) $(O) -o $@ $^ + +clean: + rm -f bpeg $(OBJFILES) .PHONY: all clean |
