Raylib setup with model loading.

Added some fish, too.
This commit is contained in:
2026-02-08 01:35:38 -05:00
parent 372676febd
commit a8ea7b9a4f
6 changed files with 75 additions and 0 deletions

31
Makefile Normal file
View File

@@ -0,0 +1,31 @@
SRC = neofish.c
OBJ = ${SRC:.c=.o}
CFLAGS = -std=c99 -pedantic -Wall -Wextra -O2
LIBS = ${shell pkg-config --libs raylib}
CC = cc
PREFIX = /usr/local
all: neofish
.c.o:
${CC} -c ${CFLAGS} ${LIBS} $<
neofish: ${OBJ}
${CC} -o $@ ${OBJ} ${LIBS}
install: all
mkdir -p ${PREFIX}/bin
cp -f neofish ${PREFIX}/bin
chmod 755 ${PREFIX}/bin/neofish
cp -r assets ${PREFIX}/bin
clean:
rm -f neofish ${OBJ}
test: neofish
./neofish
uninstall:
rm -f ${PREFIX}/bin/neofish
.PHONY: all clean install uninstall