Mirror of the repository on my personal Gitea instance: https://gitea.massivebox.net/massivebox/retrofw-jiljil
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
retrofw-jiljil/Makefile.rfw

28 lines
704 B

CC := mipsel-linux-gcc
CFLAGS := `sdl-config --libs --cflags` -ggdb3 -O0 --std=c99 -Wall -lSDL_image -lSDL_mixer -lm
HDRS :=
SRCS := src/main.c src/match.c src/graphics.c src/logic.c src/keys.c src/audio.c
OBJS := $(SRCS:.c=.o)
EXEC := jiljil.dge
all: $(EXEC)
$(EXEC): $(OBJS) $(HDRS) Makefile
$(CC) -o $@ $(OBJS) $(CFLAGS)
ipk: all
cp $(EXEC) ./ipk/data/home/retrofw/games/jiljil-c/jiljil.dge
cp -r assets ./ipk/data/home/retrofw/games/jiljil-c/assets/
./ipk/create-ipk.sh
opk: all
cp $(EXEC) ./opk/jiljil.dge
cp -r assets ./opk/assets/
mksquashfs opk build.opk -noappend -no-xattrs
rm -rf ./opk/jiljil.dge ./opk/assets
clean:
rm -f $(EXEC) $(OBJS) build.ipk build.opk
.PHONY: all clean