mirror of
https://github.com/aap/pdp6.git
synced 2026-01-13 15:27:46 +00:00
Use sdl-config and pkg-config to add compiler flags.
This commit is contained in:
parent
1452e2c856
commit
4ada97372a
6
Makefile
6
Makefile
@ -3,9 +3,11 @@ SRC=main.c apr.c mem.c tty.c
|
||||
#CFLAGS= -Wno-shift-op-parentheses -Wno-logical-op-parentheses \
|
||||
# -Wno-bitwise-op-parentheses
|
||||
CFLAGS= -fno-diagnostics-show-caret \
|
||||
-L/usr/local/lib -I/usr/local/include -lSDL -lSDL_image -lpthread
|
||||
`sdl-config --cflags` `pkg-config SDL_image --cflags`
|
||||
|
||||
LIBS= `sdl-config --libs` `pkg-config SDL_image --libs` -lpthread
|
||||
|
||||
|
||||
pdp6: $(SRC) pdp6.h
|
||||
$(CC) $(CFLAGS) $(SRC) -o pdp6
|
||||
$(CC) $(CFLAGS) $(SRC) $(LIBS) -o pdp6
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user