summaryrefslogtreecommitdiff
path: root/third_party/spiro/ppedit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/spiro/ppedit/Makefile')
-rw-r--r--third_party/spiro/ppedit/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/third_party/spiro/ppedit/Makefile b/third_party/spiro/ppedit/Makefile
new file mode 100644
index 0000000..589fdc1
--- /dev/null
+++ b/third_party/spiro/ppedit/Makefile
@@ -0,0 +1,25 @@
+TARGET = gtk
+
+ifeq ($(TARGET),gtk)
+ X3_PLAT = X3_GTK
+ X3_INCL = `pkg-config --cflags gtk+-2.0`
+ X3_LIBS = `pkg-config --libs gtk+-2.0`
+endif
+
+ifeq ($(TARGET),carbon)
+ X3_PLAT = X3_CARBON
+ X3_LIBS = -framework Carbon
+endif
+
+ifeq ($(TARGET),win32)
+ X3_PLAT = X3_WIN32
+ X3_LIBS = -lgdi32
+endif
+
+CFLAGS = -g -Wall -D$(X3_PLAT) $(X3_INCL) -I../x3/
+LDFLAGS = -g
+LDLIBS = $(X3_LIBS)
+
+all: ppedit
+
+ppedit: ppedit.o cornu.o bezctx.o bezctx_x3.o bezctx_hittest.o plate.o sexp.o image.o bezctx_ps.o spiro.o ../x3/x3$(TARGET).o ../x3/x3common.o