PC = fpc # PFLAGS = -Mobjfpc -dKEYBOARD_CARET_CONTROL -Cr # -gl "lineinfo" unit # -pg profiling # -Sa enable assertions PFLAGS = -Mdelphi -dKEYBOARD_CARET_CONTROL -Cr -gl -Sa OBJECTS = buffers.o buffers_export.o controllers.o events.o interfaces.o test.o views.o lexer_interfaces.o encodings.o words.o textfitters.o painters.o console_painters.o streams.o terminals.o DFAs.o highlighterDFAs.o symbols.o attributes.o special_buffers.o marks.o ModificationMonitorTextMarks.o undos.o debug.o all: buffers.ppu buffers_export.ppu controllers.ppu events.ppu interfaces.ppu lexer_interfaces.ppu views.ppu textfitters.ppu console_painters.ppu streams.ppu DFAs.ppu highlighterDFAs.ppu symbols.ppu attributes.ppu special_buffers.ppu undos.ppu $(OBJECTS) marks.o marks.ppu: marks.pp interfaces.pp $(PC) $(PFLAGS) marks.pp undos.o undos.ppu: undos.pp $(PC) $(PFLAGS) undos.pp ModificationMonitorTextMarks.o ModificationMonitorTextMarks.ppu: ModificationMonitorTextMarks.pp marks.pp $(PC) $(PFLAGS) ModificationMonitorTextMarks.pp buffers.o buffers.ppu: buffers.pp marks.pp undos.pp $(PC) $(PFLAGS) buffers.pp special_buffers.o special_buffers.ppu: special_buffers.pp $(PC) $(PFLAGS) special_buffers.pp attributes.o attributes.ppu: attributes.pp symbols.ppu $(PC) $(PFLAGS) attributes.pp symbols.o symbols.ppu: symbols.pp interfaces.ppu $(PC) $(PFLAGS) symbols.pp DFAs.o DFAs.ppu: DFAs.pp $(PC) $(PFLAGS) DFAs.pp highlighterDFAs.o highlighterDFAs.ppu: highlighterDFAs.pp DFAs.ppu DFAs.pp lexer_interfaces.ppu $(PC) $(PFLAGS) highlighterDFAs.pp buffers_export.o buffers_export.ppu: buffers_export.pp $(PC) $(PFLAGS) buffers_export.pp controllers.o controllers.ppu: controllers.pp buffers.pp views.pp events.pp debug.pp marks.pp undos.pp encodings.pp $(PC) $(PFLAGS) controllers.pp events.o events.ppu: events.pp $(PC) $(PFLAGS) events.pp interfaces.o interfaces.ppu: interfaces.pp $(PC) $(PFLAGS) interfaces.pp lexer_interfaces.o lexer_interfaces.ppu: lexer_interfaces.pp $(PC) $(PFLAGS) lexer_interfaces.pp test.o: test.pp buffers.pp views.pp events.pp controllers.pp painters.pp console_painters.pp terminals.pp textfitters.pp undos.pp $(PC) $(PFLAGS) test.pp views.o views.ppu: views.pp buffers.pp painters.pp marks.pp $(PC) $(PFLAGS) views.pp encodings.o encodings.ppu: encodings.pp $(PC) $(PFLAGS) encodings.pp words.o words.ppu: words.pp lexer_interfaces.pp interfaces.pp $(PC) $(PFLAGS) words.pp textfitters.o textfitters.ppu: textfitters.pp words.pp interfaces.pp buffers.pp buffers_export.pp lexer_interfaces.pp words.pp marks.pp $(PC) $(PFLAGS) textfitters.pp painters.o painters.ppu: painters.pp textfitters.pp encodings.pp streams.pp lexer_interfaces.pp $(PC) $(PFLAGS) painters.pp console_painters.o console_painters.ppu: console_painters.pp painters.pp buffers.pp terminals.pp encodings.pp $(PC) $(PFLAGS) console_painters.pp terminals.o terminals.ppu: terminals.pp buffers.pp encodings.pp DFAs.pp lexer_interfaces.pp streams.pp $(PC) $(PFLAGS) terminals.pp streams.o streams.ppu: streams.pp $(PC) $(PFLAGS) streams.pp test: $(OBJECTS) $(LD) -o test $(OBJECTS) test_words test_words.o: test_words.pp words.pp lexer_interfaces.o lexer_interfaces.ppu $(PC) $(PFLAGS) test_words.pp test_DFA test_DFA.o: test_DFA.pp highlighterDFAs.ppu DFAs.ppu lexer_interfaces.o lexer_interfaces.ppu $(PC) $(PFLAGS) test_DFA.pp clean: /bin/rm -f -- buffers.ppu special_buffers.ppu controllers.ppu events.ppu interfaces.ppu test.ppu views.ppu lexer_interfaces.ppu buffers_export.ppu encodings.ppu words.ppu textfitters.ppu painters.ppu terminals.ppu streams.ppu console_painters.ppu DFAs.ppu highlighterDFAs.ppu symbols.ppu marks.ppu ModificationMonitorTextMarks.ppu undos.ppu attributes.ppu debug.ppu $(OBJECTS) distclean: clean /bin/rm -f -- test