CExperiments/Objects/Makefile

16 lines
193 B
Makefile
Raw Normal View History

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