From b35d42e0ec41370be618ad59312786ec3795a5e7 Mon Sep 17 00:00:00 2001 From: Charadon Date: Mon, 30 May 2022 21:33:52 -0400 Subject: Makefile stuff --- Makefile | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 153d346..8f393bf 100644 --- a/Makefile +++ b/Makefile @@ -1,25 +1,29 @@ CC := gcc -CFLAGS = -Og -Wall -std=c11 -Isrc/ -LDFLAGS = -PKG_CONF := pkg-config -PKG_CONF_ARGS = --exists --modversion -PKG_CONF_LDFLAGS = `pkgconf --libs raylib` -PKG_CONF_CFLAGS = `pkgconf --cflags raylib` +CFLAGS = -Og -Wall -std=c11 -Isrc/ -Iraylib/src +LDFLAGS = -lGL -lm -lpthread -ldl -lrt -lX11 -all: check_deps build pong - +all: build_deps build pong -check_deps: - @echo "Checking for dependencies..." - @printf "Raylib | " - @$(PKG_CONF) $(PKG_CONF_ARGS) raylib +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 $@ $(LDFLAGS) $(PKG_CONF_LDFLAGS) -lGL -lm -lpthread -ldl -lrt -lX11 - + $(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 -- cgit 1.4.1-2-gfad0 0ec19e46fa1a0058fe91e'>commit diff stats
path: root/ranger.py
blob: 53fd8bdb352d675b91e3951a10f3f2bcc3d6ab15 (plain) (tree)
1
2
3
4
5
6