CExperiments/XorList/Makefile

15 lines
191 B
Makefile
Raw Normal View History

2021-10-21 13:04:33 +00:00
CC=gcc
CFLAGS=-I. -g
DEPS = base_list.h list.h
OBJ = main.o base_list.o list.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
list: $(OBJ)
gcc -o $@ $^ $(CFLAGS)
clean:
rm *.o
rm list