add base Makefile

This commit is contained in:
Chris Cromer 2018-11-05 15:04:04 -03:00
parent 28f90eea95
commit dc56073b4a
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
CC=gcc
CFLAGS=-Wall -Werror
CPPFLAGS+=-Isrc/include
#LDFLAGS=-lm
ODIR=obj
SRC=src/sort.c
OBJ=$(SRC:.c=.o)
sort: $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
clean:
rm -f src/*.o sort
.PHONY: sort clean