Skip to content

Commit

Permalink
Add raycastlib demo
Browse files Browse the repository at this point in the history
  • Loading branch information
CardealRusso committed Oct 30, 2024
1 parent e700581 commit f5a87f1
Show file tree
Hide file tree
Showing 3 changed files with 2,750 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/raycastlib-c/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CFLAGS ?= -lm -O3 -flto -Wall -Wextra -std=c99
CC = gcc

ifeq ($(OS),Windows_NT)
LDFLAGS = -lgdi32
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LDFLAGS = -framework Cocoa
else
LDFLAGS = -lX11
endif
endif

main: main.c ../../fenster.h
$(CC) main.c -I../.. -o $@ $(CFLAGS) $(LDFLAGS)
Loading

0 comments on commit f5a87f1

Please sign in to comment.