flying-balls/Makefile

27 lines
404 B
Makefile
Raw Normal View History

2019-06-03 10:09:00 +02:00
GTK_PACKAGES=gdk-pixbuf-2.0 gtk+-2.0
GTK_CFLAGS=$(shell pkg-config --cflags $(GTK_PACKAGES))
GTK_LIBS=$(shell pkg-config --libs $(GTK_PACKAGES))
CFLAGS=-Wall -g -O2 $(GTK_CFLAGS)
2019-06-04 11:22:22 +02:00
LIBS=$(GTK_LIBS)
2019-06-03 10:09:00 +02:00
PROGS=balls
.PHONY: default
default: all
2019-06-03 10:09:00 +02:00
.PHONY: run
run: balls
./balls
.PHONY: all
all: $(PROGS)
balls: balls.o
$(CC) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
.PHONY: clean
clean:
rm -f *.o $(PROGS)