2021-01-12 15:55:25 +01:00
|
|
|
GTK_PACKAGES=gdk-pixbuf-2.0 gtk+-3.0
|
2019-06-03 10:09:00 +02:00
|
|
|
GTK_CFLAGS=$(shell pkg-config --cflags $(GTK_PACKAGES))
|
|
|
|
GTK_LIBS=$(shell pkg-config --libs $(GTK_PACKAGES))
|
|
|
|
|
2019-08-19 10:45:55 +02:00
|
|
|
# PROFILING_CFLAGS=-pg
|
|
|
|
CFLAGS=-Wall -g -O2 $(PROFILING_CFLAGS) $(GTK_CFLAGS)
|
2019-06-03 10:09:00 +02:00
|
|
|
|
2021-01-12 15:55:25 +01:00
|
|
|
LIBS=$(GTK_LIBS) -lm
|
2019-06-03 10:09:00 +02:00
|
|
|
|
|
|
|
PROGS=balls
|
2021-12-01 20:18:19 +01:00
|
|
|
OBJS=balls.o c_index.o
|
2019-06-03 10:09:00 +02:00
|
|
|
|
2019-07-29 14:21:55 +02:00
|
|
|
.PHONY: default
|
|
|
|
default: all
|
|
|
|
|
2019-06-03 10:09:00 +02:00
|
|
|
.PHONY: run
|
|
|
|
run: balls
|
|
|
|
./balls
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(PROGS)
|
|
|
|
|
2021-12-01 20:18:19 +01:00
|
|
|
balls: $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
|
2019-06-03 10:09:00 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2021-12-01 20:18:19 +01:00
|
|
|
rm -f *.o $(PROGS) $(OBJS)
|