Initial commit

This commit is contained in:
Dimitri Lozeve 2024-09-20 21:38:15 +02:00
commit f15977009e
7 changed files with 134 additions and 0 deletions

15
Makefile Normal file
View file

@ -0,0 +1,15 @@
CFLAGS ?= -Wall -Wextra -std=c99 -O2
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LDFLAGS = -framework Cocoa -dynamiclib
else
LDFLAGS = -lX11 -shared
endif
lib.so: lib.c fenster/fenster.h
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
.PHONY: clean
clean:
rm -f lib.so