mirror of
https://github.com/Immediate-Mode-UI/Nuklear.git
synced 2026-11-30 16:48:10 +01:00
Fixed window movement for windows without header and some small wrong calculation inside the panel layout code. In addition I added another example implementing a simple calculator.
40 lines
815 B
Makefile
40 lines
815 B
Makefile
# Compiler
|
|
CC = clang
|
|
|
|
# Flags
|
|
CFLAGS = -std=c99 -pedantic -O2
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
BIN := $(BIN).exe
|
|
LIBS = -lglfw3 -lopengl32 -lm -lGLU32 -lGLEW32
|
|
else
|
|
LIBS = -lglfw -lGL -lm -lGLU -lGLEW
|
|
endif
|
|
|
|
all: node_editor file_browser overview extended
|
|
node_editor:
|
|
@mkdir -p bin
|
|
rm -f bin/node_editor $(OBJS)
|
|
$(CC) $(CFLAGS) -o bin/node_editor node_editor.c $(LIBS)
|
|
|
|
file_browser:
|
|
@mkdir -p bin
|
|
rm -f bin/file_browser $(OBJS)
|
|
$(CC) $(CFLAGS) -o bin/file_browser file_browser.c $(LIBS)
|
|
|
|
overview:
|
|
@mkdir -p bin
|
|
rm -f bin/overview $(OBJS)
|
|
$(CC) $(CFLAGS) -o bin/overview overview.c $(LIBS)
|
|
|
|
extended:
|
|
@mkdir -p bin
|
|
rm -f bin/extended $(OBJS)
|
|
$(CC) $(CFLAGS) -o bin/extended extended.c $(LIBS)
|
|
|
|
calculator:
|
|
@mkdir -p bin
|
|
rm -f bin/calculator $(OBJS)
|
|
$(CC) $(CFLAGS) -o bin/calculator calculator.c $(LIBS)
|
|
|