Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/SDL2_Weather/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
weather
18 changes: 18 additions & 0 deletions examples/SDL2_Weather/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CC ?= gcc
CFLAGS ?= -std=c11 -Wall -Wextra -O2
PKGS := sdl2 SDL2_ttf libcurl
PKG_CFLAGS := $(shell pkg-config --cflags $(PKGS))
PKG_LIBS := $(shell pkg-config --libs $(PKGS))

TARGET := weather
SRC := main.c

all: $(TARGET)

$(TARGET): $(SRC)
$(CC) $(CFLAGS) $(PKG_CFLAGS) $(SRC) -o $(TARGET) $(PKG_LIBS) -lm

clean:
rm -f $(TARGET)

.PHONY: all clean
Loading