mirror of
https://github.com/FunKey-Project/FunKey-ProdScreens.git
synced 2025-12-12 16:58:50 +01:00
changed makefile for cross compilation with buildroot
This commit is contained in:
parent
5f804857a4
commit
1f183b9e4d
12
Makefile
12
Makefile
@ -14,16 +14,20 @@ EXEC=funkey_prod_screens
|
||||
|
||||
# Build settings
|
||||
CC=$(CROSS_COMPILE)gcc
|
||||
# SDL options
|
||||
CC_SDL=-lSDL -lSDL_image -lSDL_ttf `sdl-config --cflags --libs`
|
||||
|
||||
# Other options
|
||||
CFLAGS=-O3 -std=c99 -Wall
|
||||
CFLAGS += `sdl-config --cflags`
|
||||
CFLAGS += -O3 -std=c99 -Wall
|
||||
|
||||
# SDL options
|
||||
LIBS += `sdl-config --libs`
|
||||
LIBS += -lSDL_ttf -lSDL_image
|
||||
|
||||
|
||||
all:Build
|
||||
|
||||
Build:
|
||||
$(CC) $(S_FILES) -o $(EXEC) $(CC_SDL) $(CFLAGS)
|
||||
$(CC) $(S_FILES) -o $(EXEC) $(LIBS) $(CFLAGS)
|
||||
|
||||
clean:
|
||||
rm $(EXEC)
|
||||
Loading…
x
Reference in New Issue
Block a user