PACKAGE = Bitmap-Terminal VERSION = 0.0.5 CFLAGS += `pkg-config --cflags gtk+-3.0` -g -Wall -Werror # -pg LDFLAGS += `pkg-config --libs gtk+-3.0` -lutil #-pg COMMON_OBJECTS = buffer-character-iterator.o encoders.o glyph.o font.o pixbuf-drawing.o buffer.o buffer-mark.o attribute.o view-paragraph.o view-run.o terminal-emulator.o view-input.o window.o file-IO.o table.o view-buffer-mark.o word-wrapper.o view2.o TERMINAL_OBJECTS = $(COMMON_OBJECTS) terminal-main.o EDITOR_OBJECTS = $(COMMON_OBJECTS) editor-main.o all: Terminal Editor Terminal: $(TERMINAL_OBJECTS) $(CC) -o Terminal $(TERMINAL_OBJECTS) $(LDFLAGS) Editor: $(EDITOR_OBJECTS) $(CC) -o Editor $(EDITOR_OBJECTS) $(LDFLAGS) terminal-main.o: terminal-main.c terminal-emulator.h window.h editor-main.o: editor-main.c view-input.h window.h file-IO.h buffer.o: buffer.c buffer.h buffer-mark.h class.h attribute.h buffer-mark.o: buffer-mark.c buffer-mark.h class.h buffer-item.h buffer.h view-buffer-mark.o: view-buffer-mark.c view-buffer-mark.h buffer-mark.h class.h view.o: view.c view.h buffer.h buffer-mark.h view-run.h class.h view-paragraph.h view-buffer-mark.h font.h glyph.h pixbuf-drawing.h encoders.h table.h attribute.o: attribute.c attribute.h buffer-mark.h class.h view-paragraph.o: view-paragraph.c view-paragraph.h view-buffer-mark.h buffer-mark.h attribute.h view-run.h class.h view-run.o: view-run.c view-run.h glyph.o: glyph.c glyph.h font.o: font.c font.h encoders.h encoders.o: encoders.c encoders.h pixbuf-drawing.o: pixbuf-drawing.c pixbuf-drawing.h glyph.h terminal-emulator.o: terminal-emulator.c terminal-emulator.h attribute.h encoders.h buffer-mark.h view.h view-input.o: view-input.c view-input.h buffer-item.h encoders.h buffer-mark.h buffer.h window.o: window.c window.h view.h encoders.h font.h file-IO.o: file-IO.c file-IO.h codepoint-iterator.h table.o: table.c table.h class.h buffer-mark.h view-buffer-mark.h word-wrapper.o: word-wrapper.c word-wrapper.h glyph.h buffer.h encoders.h buffer-character-iterator.h class.h view-paragraph.h table.h view2.o: view2.c view2.h word-wrapper.h codepoint-iterator.h glyph.h buffer.h font.h pixbuf-drawing.h class.h view-paragraph.h buffer-character-iterator.o: buffer-character-iterator.c buffer-character-iterator.h buffer.h encoders.h clean: /bin/rm -f -- $(TERMINAL_OBJECTS) $(EDITOR_OBJECTS) distclean: clean /bin/rm -f -- Terminal Editor dist: ln -s . $(PACKAGE)-$(VERSION) tar cf $(PACKAGE)-$(VERSION).TAR $(PACKAGE)-$(VERSION)/* --exclude='.svn' rm -f $(PACKAGE)-$(VERSION)