2016-04-11 02:34:59 +03:00
|
|
|
# Flags
|
|
|
|
CFLAGS = -std=c99 -pedantic -O2
|
|
|
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
BIN := $(BIN).exe
|
|
|
|
LIBS = -lglfw3 -lopengl32 -lm -lGLU32 -lGLEW32
|
|
|
|
else
|
2016-04-19 14:49:07 +03:00
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
ifeq ($(UNAME_S),Darwin)
|
|
|
|
LIBS = -lglfw3 -framework OpenGL -lm -lGLEW
|
|
|
|
else
|
|
|
|
LIBS = -lglfw -lGL -lm -lGLU -lGLEW
|
|
|
|
endif
|
2016-04-11 02:34:59 +03:00
|
|
|
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)
|
|
|
|
|
2016-04-15 20:53:36 +03:00
|
|
|
calculator:
|
|
|
|
@mkdir -p bin
|
|
|
|
rm -f bin/calculator $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o bin/calculator calculator.c $(LIBS)
|
|
|
|
|