Files
Nuklear/example/Makefile
T
vurtun 8a01de120a Restructured demos and examples
All platform and renderbackend independent examples are now optional
demos for all platforms in `demo/`. Moving some demos from `example/`
provides an easier way to test GUI concepts for users and simplifies
maintenance.
2016-04-28 17:01:19 +02:00

27 lines
550 B
Makefile

# Flags
CFLAGS = -std=c99 -pedantic -O2
ifeq ($(OS),Windows_NT)
BIN := $(BIN).exe
LIBS = -lglfw3 -lopengl32 -lm -lGLU32 -lGLEW32
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LIBS = -lglfw3 -framework OpenGL -lm -lGLEW
else
LIBS = -lglfw -lGL -lm -lGLU -lGLEW
endif
endif
all: file_browser extended
file_browser:
@mkdir -p bin
rm -f bin/file_browser $(OBJS)
$(CC) $(CFLAGS) -o bin/file_browser file_browser.c $(LIBS)
extended:
@mkdir -p bin
rm -f bin/extended $(OBJS)
$(CC) $(CFLAGS) -o bin/extended extended.c $(LIBS)