npc

nanohard parser compiler
git clone git://git.kocotian.pl/npc.git
Log | Files | Refs

commit c0e9b0f3d6ae13bf6f02235a0e444d63be824381
parent e3b21e0397697b76c65418847f3e2c552886904b
Author: kocotian <kocotian@kocotian.pl>
Date:   Fri,  9 Apr 2021 21:21:07 +0200

Makefile

Diffstat:
AMakefile | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,14 @@ +CC = gcc +CFLAGS = -Wall -Wextra -Wconversion -std=c99 -pedantic -I. + +SRC = npc.c str.c parse.c compile.c +LIB = ${SRC:.c=.o} + +.c.o: + ${CC} ${CFLAGS} -c -o $@ $^ + +npc: ${LIB} + ${CC} ${CFLAGS} -o $@ $^ + +clean: + rm -rf npc *.o *.orig *.rej