IDST_DIR ?= ../../../.. IDC = $(IDST_DIR)/object/stage2/idc -B $(IDST_DIR)/object/stage2/ -I$(OBJECTS) ifeq ($(shell uname),Darwin) SDLLIB = -L/usr/local/lib -lSDL -lSDLmain -Wc,-framework -Wc,Cocoa else SDLLIB = -L/usr/local/lib -lSDL endif SDLINC = -J/usr/local/include -J../leastphic/sdlprims FT2INC = -J/usr/local/include/freetype2 FT2LIB = -L/usr/local/lib -lfreetype OBJECTS = $(IDST_DIR)/function/objects IDFLAGS = -g -k -I$(OBJECTS) $(SDLINC) $(FT2INC) -I../leastphic -J../leastphic -I$(IDST_DIR)/function/jolt2/ -I.. IDLIBS = $(OBJECTS)/objects.a $(IDST_DIR)/function/jolt2/jolt.a LIBS = ../leastphic.a ../Frame.o ../Utility.o ../TestCase.o ../TextBuffer.o ../Signal.o ../TextController.o ../Range.o ../Shell.o ../Develop.o ../Scroll.o FONTS = arialbd.ttf profontwindows.ttf verdana.ttf arial.ttf IMAGES = dataflow.bmp simpleEditor.bmp realEditor.bmp assoc.bmp inverse.bmp relation.bmp detail.bmp signal.bmp demo: demo.st $(FONTS) $(IMAGES) run : demo ./demo $(FONTS) : cp ../leastphic/$@ . % : %.st $(LIBS) $(IDC) $(IDFLAGS) $< -o $@ $(IDLIBS) $(LIBS) $(SDLLIB) $(FT2LIB) -execstack -s $@ clean : .FORCE rm -rf *~ demo *.so *.so.c *.o *.a *.o.c *.c .gdb_history *.exe *.ttf *.bmp *.dSYM %.bmp : ../img/%.svg convert $< $@ .FORCE :