modularization of c_index, basic balls data.

This commit is contained in:
Antonio Carzaniga
2021-12-01 20:18:19 +01:00
parent fb00e29a0d
commit 87db81dcfe
5 changed files with 217 additions and 268 deletions

View File

@ -8,6 +8,7 @@ CFLAGS=-Wall -g -O2 $(PROFILING_CFLAGS) $(GTK_CFLAGS)
LIBS=$(GTK_LIBS) -lm
PROGS=balls
OBJS=balls.o c_index.o
.PHONY: default
default: all
@ -19,9 +20,9 @@ run: balls
.PHONY: all
all: $(PROGS)
balls: balls.o
$(CC) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
balls: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
.PHONY: clean
clean:
rm -f *.o $(PROGS)
rm -f *.o $(PROGS) $(OBJS)