File: makefile

package info (click to toggle)
hatari 2.0.0%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 12,112 kB
  • ctags: 16,421
  • sloc: ansic: 146,916; python: 5,460; objc: 1,856; sh: 945; asm: 757; makefile: 152; xml: 32
file content (17 lines) | stat: -rw-r--r-- 368 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# SDL v1 build: "make SDL=sdl"
# SDL v2 build: "make SDL=sdl2"

SDL    ?= sdl
CFLAGS := -O -Wall $$(pkg-config --cflags $(SDL))
LIBS   := $$(pkg-config --libs $(SDL))

all: listkeys checkkeys

checkkeys: checkkeys.c Makefile
	$(CC) -o $@ $(CFLAGS) $< $(LIBS)

listkeys: listkeys.c Makefile
	$(CC) -o $@ $(CFLAGS) $< $(LIBS)

clean:
	$(RM) listkeys checkkeys *.[oO] *~