aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-05-04 16:14:25 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-05-05 04:45:25 +0200
commit4f4a86529adc896ed4d3bc922ef88aec89e3fd53 (patch)
tree41d19ed9b86dd48b989c85fad353c962791a8e8d /Makefile
downloadtdv-4f4a86529adc896ed4d3bc922ef88aec89e3fd53.tar.gz
tdv-4f4a86529adc896ed4d3bc922ef88aec89e3fd53.tar.xz
tdv-4f4a86529adc896ed4d3bc922ef88aec89e3fd53.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e354dff
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+SHELL = /bin/sh
+
+pkgs = ncursesw glib-2.0 gio-2.0
+targets = sdcli
+
+CC = clang
+CFLAGS = -ggdb -std=gnu99 -Wall -Wextra -Wno-missing-field-initializers \
+ `pkg-config --cflags $(pkgs)`
+LDFLAGS = `pkg-config --libs $(pkgs)`
+
+.PHONY: all clean
+
+all: $(targets)
+
+clean:
+ rm -f $(targets) *.o
+
+sdcli: sdcli.o stardict.o
+ $(CC) $^ -o $@ $(LDFLAGS)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $< -o $@