diff options
| author | Tom Harley | 2021-11-11 04:00:59 +0000 |
|---|---|---|
| committer | Tom Harley | 2021-11-11 05:41:29 +0000 |
| commit | 5dd0dd354743e9628433b281cb46d72a3f9986c9 (patch) | |
| tree | 3703196345215e519ea3192d9e6c0be0a5b6f4f0 /Makefile | |
| parent | Have library control window creation (diff) | |
| download | sdl2_vnc-5dd0dd354743e9628433b281cb46d72a3f9986c9.tar.gz sdl2_vnc-5dd0dd354743e9628433b281cb46d72a3f9986c9.zip | |
Refactor to match SDL2 code style
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,7 @@ -CFLAGS += $(shell sdl2-config --cflags) -L. -LDLIBS += $(shell sdl2-config --libs) -lSDL2_vnc +CFLAGS += -Wpedantic -Wall + +CFLAGS += $(shell sdl2-config --cflags) +LDLIBS += $(shell sdl2-config --libs) PREFIX ?= /usr/local @@ -7,8 +9,7 @@ default: all all: vncc libSDL2_vnc.so libSDL2_vnc.a -vncc: vncc.o libSDL2_vnc.so - $(CC) $(CFLAGS) $(LDFLAGS) $(OUTPUT_OPTION) $< $(LDLIBS) +vncc: libSDL2_vnc.so libSDL2_vnc.so: SDL2_vnc.o $(CC) $(CFLAGS) -shared $(OUTPUT_OPTION) $^ |
