mirror of
https://gitlab.com/octospacc/BloccSpacc
synced 2025-03-04 19:07:45 +01:00
29 lines
597 B
Makefile
29 lines
597 B
Makefile
AppName = BloccSpacc
|
|
ExeSuffix = .exe
|
|
|
|
Sources = $(wildcard Source/*.c)
|
|
Objects = $(Sources:.c=.o)
|
|
|
|
Defines = -DTarget_PC
|
|
CFlags = -O2
|
|
LdFlags = -lSDL -lSDL_gfx -lSDL_image -lSDL_mixer -lSDL_ttf
|
|
|
|
CC = gcc $(Defines)
|
|
|
|
ifdef Target
|
|
ifeq ($(Target), PocketGo)
|
|
ExeSuffix = .PocketGo.exe
|
|
PathPrefix = /opt/miyoo/bin/arm-miyoo-linux-uclibcgnueabi
|
|
Defines = -DTarget_PocketGo
|
|
CC = $(PathPrefix)-gcc $(Defines)
|
|
endif
|
|
endif
|
|
|
|
all: $(AppName)
|
|
|
|
$(AppName): $(Objects)
|
|
$(CC) $^ $(CFlags) $(LdFlags) -o $(AppName)$(ExeSuffix)
|
|
|
|
clean:
|
|
rm -f Source/*.o $(AppName)$(ExeSuffix) $(AppName).*$(ExeSuffix)
|