diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6a0dc4b --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +HSSRCS := unicode.hs +CSRCS := pickme.c +OBJS := $(HSSRCS:.hs=.o) +TARGET := pickme +UNICODEDATA := UnicodeData.txt +CFLAGS := -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -optc-mfpmath=sse -optc-msse -optc-msse2 -optc-pthread -optc-g -optc-O #-optc-fsanitize=address -optl-fsanitize=address +LIBS := -optc-L/home/lav/.ghcup/ghc/9.6.1/lib/ghc-9.6.1/lib/x86_64-linux-ghc-9.6.1 -lgtk-4 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lgraphene-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 + +all: $(TARGET) $(UNICODEDATA) + +clean: + @rm $(TARGET) $(OBJS) + +$(OBJS): $(HSSRCS) + ghc -c -O $^ + +$(TARGET): $(CSRCS) $(OBJS) + ghc --make -no-hs-main -g $(CFLAGS) $(LIBS) -o $(TARGET) $^ + +$(UNICODEDATA): + wget -O $@ -o /dev/null 'https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt' |