File: makefile

package info (click to toggle)
hatari 2.3.1%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 13,812 kB
  • sloc: ansic: 168,918; python: 5,756; objc: 1,913; asm: 1,634; sh: 1,627; javascript: 145; makefile: 101; 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] *~