First commit, compiles without sound for now. Need to change controls, levels, remove some menus, and make sound work

This commit is contained in:
Vincent-FK
2021-06-04 09:37:35 +02:00
parent 26217d9cf0
commit 9c6fec17a2
188 changed files with 7104 additions and 0 deletions

47
Makefile Normal file
View File

@@ -0,0 +1,47 @@
CC = $(CROSS_COMPILE)gcc -g
TARGET_FUNKEY ?= 1
ifeq ($(TARGET_FUNKEY),1)
SDL_INCLUDES = $(shell /opt/FunKey-sdk-2.0.0/arm-funkey-linux-musleabihf/sysroot/usr/bin/sdl-config --cflags)
SDL_LIBS = $(shell /opt/FunKey-sdk-2.0.0/arm-funkey-linux-musleabihf/sysroot/usr/bin/sdl-config --libs) -Wl,--as-needed -Wl,--gc-sections -Wl,-O1,--sort-common -flto -s
else
SDL_INCLUDES = `sdl-config --cflags`
SDL_LIBS = `sdl-config --libs`
endif
DEPFLAGS = $(SDL_INCLUDES)
CFLAGS = -Wall -O -std=c99 $(SDL_INCLUDES)
LDFLAGS = $(SDL_LIBS) -lSDL_image -lSDL_mixer
SRC = $(wildcard src/*.c)
OBJ = $(SRC:.c=.o)
EXEC = bomber
.PHONY: all dep clean mrproper
all : dep $(EXEC)
dep: .depend
.depend: $(SRC)
@touch .depend
$(CC) -MM $(DEPFLAGS) $(SRC) > $@
$(EXEC): $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
clean:
-rm -f *~ $(OBJ)
mrproper: clean
-rm -f *~ $(EXEC) .depend
ifneq ($(wildcard .depend),)
include .depend
endif