~fluix/periodicus

9fa32d889bd38ab01aa632bc756a4fe567bb65da — Steven Guikal 3 months ago 3d8d067 master
Improve Makefile

Use more standard names for libraries and compiler flags.

Replace build with periodicus and add clean.

Co-authored-by: Sebastian LaVine <mail@smlavine.com>
1 files changed, 10 insertions(+), 3 deletions(-)

M Makefile
M Makefile => Makefile +10 -3
@@ 1,5 1,12 @@
CC=gcc
CFLAGS=-lSDL2 -lSDL2_ttf
LIBS=-lSDL2 -lSDL2_ttf
LDFLAGS=

build: main.c
	$(CC) -o periodicus *.c $(CFLAGS)
CFILES=main.c
HFILES=elements.h log.h

periodicus: $(CFILES) $(HFILES)
	$(CC) -o $@ $(CFILES) $(LDFLAGS) $(LIBS)

clean:
	rm -f periodicus