IDSTPATH ?= ../../idst FUNCPATH = $(IDSTPATH)/function IDCPATH = $(IDSTPATH)/object/stage2 OBJPATH = $(FUNCPATH)/objects IDC = $(IDCPATH)/idc IDCFLAG = -g -B $(IDCPATH)/ -I.. -I$(OBJPATH) -J../cairo OBJS = ../sdl.o ../_cairo.o ../Geometry.o ../MiniCairo.o ../Event.o ../Colour.o \ ../Shape.o ../Transform.o ../Views-drawing.o ../Views-properties.o ../Views.o ../EventHandler.o ../Views-events.o ../Views-scrolling.o ../Views-layout.o \ ../SDL.dll ../libcairo-2.dll all : rectangle drag scroll # rectangle : $(OBJS2) # drag : $(OBJS2) # scroll : $(OBJS2) % : %.st $(IDC) $< $(IDCFLAG) $(OBJS) $(OBJS2) $(OBJPATH)/objects.a %.o : %.st $(IDC) -c $< $(IDCFLAG) test : rectangle PATH=.. ./rectangle clean: -rm *.exe -rm *.o -rm *.o.c