19 lines
230 B
Makefile
19 lines
230 B
Makefile
CC?=gcc
|
|
AS=$(CC) -c
|
|
AR?=ar
|
|
|
|
CFLAGS?=-g
|
|
CFLAGS+=-Wall -Wextra
|
|
|
|
SRCDIR=src
|
|
TESTDIR=tests
|
|
BINDIR=bin
|
|
|
|
test_codes = tests/test.c tests/test_util.c
|
|
|
|
bin/test:
|
|
$(CC) $(CFLAGS) -I$(SRCDIR) $(test_codes) -o $@
|
|
|
|
clean:
|
|
rm -f $(BINDIR)/*
|