CExperiments/Objects/Makefile
Andrea Bontempi 10a9c34328 Init
2021-10-21 15:04:33 +02:00

16 lines
193 B
Makefile

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