blob: 8f393bf8019368b08944bd5b805abd726209d21f (
plain) (
tree)
|
|
CC := gcc
CFLAGS = -Og -Wall -std=c11 -Isrc/ -Iraylib/src
LDFLAGS = -lGL -lm -lpthread -ldl -lrt -lX11
all: build_deps build pong
build_deps:
cd raylib/src && $(MAKE) PLATFORM=PLATFORM_DESKTOP
build: src/main.c src/enemy.c src/ball.c src/title.c
$(CC) $(CFLAGS) $(PKG_CONF_CFLAGS) -c $?
pong: main.o enemy.o ball.o title.o
$(CC) $? -o $@ raylib/src/libraylib.a $(LDFLAGS)
install:
mkdir -p app
install -Dm755 ./pong app/pong
cp -r resources app/resources
install_flatpak:
mkdir -p /app/Pong
install -Dm755 ./pong /app/Pong/pong
cp -r resources/ /app/Pong/resources
clean:
rm -fv *.o
rm -fv pong
cd raylib/src && $(MAKE) clean
|