1[package] 2main=lazarus/lcl 3 4[require] 5packages=rtl 6 7[target] 8units=lcl.pas 9 10[prerules] 11DBG_OPTIONS= 12ifeq ($(OS_TARGET),darwin) 13DBG_OPTIONS=-gw 14endif 15 16[compiler] 17options=-gl -dgtk2 -Sci $(DBG_OPTIONS) 18unitdir=../../units/$(CPU_TARGET)-$(OS_TARGET) \ 19 ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) \ 20 ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) \ 21 .. . 22unittargetdir=../../units/$(CPU_TARGET)-$(OS_TARGET)/gtk2 23includedir=. 24 25[clean] 26files=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) \ 27 $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) \ 28 $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) \ 29 $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) \ 30 $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) \ 31 $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) \ 32 $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT)) 33 34 35[rules] 36.PHONY: cleartarget compiled all 37 38cleartarget: 39 -$(DEL) $(COMPILER_UNITTARGETDIR)/lcl$(PPUEXT) \ 40 $(COMPILER_UNITTARGETDIR)/lcl$(OEXT) 41 42compiled: 43 $(CPPROG) -f Makefile.compiled $(COMPILER_UNITTARGETDIR)/LCL.compiled 44 45all: cleartarget $(COMPILER_UNITTARGETDIR) ../lcl$(PPUEXT) compiled 46 47