mirror of
https://github.com/Andreabont/CExperiments.git
synced 2025-01-18 17:24:21 +00:00
15 lines
193 B
Makefile
15 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
|
|
|