change to build on Windows
This commit is contained in:
parent
a1d57b3f66
commit
0a115cea0d
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
/build
|
||||
/.rsconscache
|
||||
/freetype2gl3
|
||||
/freetype2gl3.exe
|
||||
|
18
Makefile
18
Makefile
@ -1,11 +1,15 @@
|
||||
.PHONY: default
|
||||
default:
|
||||
@rake $@
|
||||
ifeq ($(OS),Windows_NT)
|
||||
GL_LIB := opengl32
|
||||
else
|
||||
GL_LIB := GL
|
||||
endif
|
||||
CFLAGS := $(shell freetype-config --cflags) $(shell sdl2-config --cflags)
|
||||
CXXFLAGS := $(CFLAGS)
|
||||
LDFLAGS := -l$(GL_LIB) -ldl -lfreetype $(shell sdl2-config --libs) $(shell freetype-config --libs)
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@rake $@
|
||||
freetype2gl3: gl3w.o freetype2gl3.o
|
||||
$(CXX) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@rake $@
|
||||
-rm -f freetype2gl3
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "gl3w.h"
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL.h>
|
||||
#include <iostream>
|
||||
#include <ft2build.h>
|
||||
#include FT_FREETYPE_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user