mirror of
https://github.com/zserge/fenster.git
synced 2025-04-12 10:48:41 +03:00
16 lines
282 B
Makefile
16 lines
282 B
Makefile
CFLAGS ?= -Wall -Wextra -std=c99
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
LDFLAGS = -lgdi32
|
|
else
|
|
UNAME_S := $(shell uname -s)
|
|
ifeq ($(UNAME_S),Darwin)
|
|
LDFLAGS = -framework Cocoa
|
|
else
|
|
LDFLAGS = -lX11
|
|
endif
|
|
endif
|
|
|
|
example: example.c fenster.h
|
|
$(CC) example.c -Os -o $@ $(CFLAGS) $(LDFLAGS)
|