blob: baeb28ad5db27f45a0040126ab925371fcd1daab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/bme/makefile.orig 2018-09-01 09:19:43 UTC
+++ src/bme/makefile
@@ -1,10 +1,15 @@
+CC?=gcc
+CFLAGS+=`sdl-config --cflags`
+LIBS+=`sdl-config --libs`
+
+
all: dat2inc datafile
datafile: datafile.c bme_end.c
- gcc -o datafile datafile.c bme_end.c
+ $(CC) $(CFLAGS) -o datafile datafile.c bme_end.c
strip datafile
dat2inc: dat2inc.c
- gcc -o dat2inc dat2inc.c
+ $(CC) $(LIBS) -o dat2inc dat2inc.c
strip dat2inc
|