mirror of
https://github.com/aap/pdp6.git
synced 2026-05-02 14:30:03 +00:00
Merge pull request #1 from larsbrinkhoff/master
Use sdl-config and pkg-config to add compiler flags.
This commit is contained in:
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 \
|
#CFLAGS= -Wno-shift-op-parentheses -Wno-logical-op-parentheses \
|
||||||
# -Wno-bitwise-op-parentheses
|
# -Wno-bitwise-op-parentheses
|
||||||
CFLAGS= -fno-diagnostics-show-caret \
|
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
|
pdp6: $(SRC) pdp6.h
|
||||||
$(CC) $(CFLAGS) $(SRC) -o pdp6
|
$(CC) $(CFLAGS) $(SRC) $(LIBS) -o pdp6
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user