mirror of
https://github.com/Andreabont/CExperiments.git
synced 2024-11-24 10:47:58 +00:00
16 lines
193 B
Makefile
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
|
|
|