OSDN Git Service

modified: src/strokes.txt
[kp123/kp123.git] / src / Makefile.am
index 7be12d7..97df8b8 100644 (file)
@@ -2,12 +2,16 @@
 bin_PROGRAMS = kp123
 pkgdata_DATA = strokes.txt
 
+DATADIR2 = @datadir@
+
 kp123_SOURCES =        kp123.c \
                padarea.c \
                recognize_stroke.c \
                recognize_kanji.c \
                recognize_extra.c
 
+DEFS = -DKP123_DATADIR=\"$(DATADIR2)/$(PACKAGE)\"
+
 AM_CFLAGS = @GTK_CFLAGS@ -Wall -funsigned-char
 
 kp123_LDADD = @GTK_LIBS@