File: makefile

package info (click to toggle)
hatari 2.2.0%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 11,932 kB
  • sloc: ansic: 160,820; python: 5,589; objc: 1,913; asm: 1,523; sh: 1,348; makefile: 99; xml: 32
file content (17 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (2)
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] *~