Browse code

fix Makefile for demo project on Linux so that it works in Debian 12 amd64

Dario Rodriguez authored on 28/07/2023 23:09:39
Showing 1 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 CC=gcc
2 2
 CFLAGS=-Wall -g -I/usr/include/SDL2 -DLINUX
3
-LDFLAGS=-lSDL2 -lSDL2_ttf
3
+LDFLAGS=-lSDL2_ttf -lSDL2
4 4
 
5 5
 all: boxui_demo_helloworld boxui_demo_helloworld.exe boxui_demo_helloworld.html
6 6
 
... ...
@@ -31,6 +31,7 @@ boxui-html.o: boxui.c boxui.h notosans_regular_ttf.c notosans_regular_ttf.h
31 31
 boxui_demo_helloworld.o: boxui_demo_helloworld.c boxui.h
32 32
 
33 33
 boxui_demo_helloworld: boxui.o boxui_demo_helloworld.o
34
+	gcc boxui_demo_helloworld.o boxui.o -o boxui_demo_helloworld -lSDL2_ttf -lSDL2
34 35
 
35 36
 # boxui_demo_helloworld: windows
36 37