16 lines
195 B
Makefile
16 lines
195 B
Makefile
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
|