nuclear@22: obj = simple-noft.o nuclear@22: bin = simple-noft nuclear@22: nuclear@22: CC = gcc nuclear@22: CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include nuclear@22: LDFLAGS = -Wl,-rpath=. $(lib_so) $(libgl) nuclear@22: nuclear@22: font = serif.ttf nuclear@22: nuclear@22: ifeq ($(shell uname -s), Darwin) nuclear@22: libgl = -framework OpenGL -framework GLUT nuclear@22: lib_so = libdrawtext-noft.dylib nuclear@22: else nuclear@22: libgl = -lGL -lGLU -lglut nuclear@22: lib_so = libdrawtext-noft.so.0.0 nuclear@22: lib_soname = libdrawtext-noft.so.0 nuclear@22: endif nuclear@22: nuclear@22: $(bin): $(obj) $(lib_so) $(lib_soname) nuclear@22: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@22: nuclear@22: $(lib_so): ../../$(lib_so) nuclear@22: rm -f $@ nuclear@22: ln -s $< $@ nuclear@22: nuclear@22: $(lib_soname): ../../$(lib_so) nuclear@22: rm -f $@ nuclear@22: ln -s $< $@ nuclear@22: nuclear@22: .PHONY: clean nuclear@22: clean: nuclear@22: rm -f $(obj) $(bin) $(lib_so)