Browse Source

Add "configure" script

Look I'm being all compatible and stuff.
master
Causal Agent 5 months ago
parent
commit
d268e957df
Signed by: Curtis McEnroe <june@causal.agency> GPG Key ID: CEA2F97ADCFCD77C
3 changed files with 10 additions and 6 deletions
  1. 1
    0
      .gitignore
  2. 1
    6
      Makefile
  3. 8
    0
      configure

+ 1
- 0
.gitignore View File

@@ -2,6 +2,7 @@
*.o
CARDS.DLL
SOL.EXE
config.mk
dump
freecell
sol

+ 1
- 6
Makefile View File

@@ -1,11 +1,6 @@
CFLAGS += -std=c99 -Wall -Wextra -Wpedantic

SDL2_PREFIX = /usr/local
CFLAGS += -I$(SDL2_PREFIX)/include/SDL2
LDFLAGS += -L$(SDL2_PREFIX)/lib
LDLIBS = -lSDL2

-include config.mk
include config.mk

BINS = dump freecell sol


+ 8
- 0
configure View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
cflags=$(pkg-config --cflags sdl2)
ldlibs=$(pkg-config --libs sdl2)
cat > config.mk << EOF
CFLAGS += ${cflags}
LDLIBS += ${ldlibs}
EOF

Loading…
Cancel
Save