blob: 6a0dc4bc4355e2630fb1c17a27bdbf2984cd1892 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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'
|