aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-05-17 18:26:08 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-05-17 18:41:14 +0200
commit9c024a57cd43eb10079cb2728a25c76f1a2a967c (patch)
tree787f6c742c553381d08dabbcf42360a471c976c3 /Makefile
parent156e12c456a79376e3409dca910d02027e660a2f (diff)
downloadtdv-9c024a57cd43eb10079cb2728a25c76f1a2a967c.tar.gz
tdv-9c024a57cd43eb10079cb2728a25c76f1a2a967c.tar.xz
tdv-9c024a57cd43eb10079cb2728a25c76f1a2a967c.zip
Add CMake infrastructure
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 0 insertions, 33 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 5478583..0000000
--- a/Makefile
+++ /dev/null
@@ -1,33 +0,0 @@
-SHELL = /bin/sh
-
-pkgs = ncursesw glib-2.0 gio-2.0 pango
-tests = test-stardict
-targets = sdtui add-pronunciation $(tests)
-
-CFLAGS = -ggdb -std=gnu99 -Wall -Wextra -Wno-missing-field-initializers \
- `pkg-config --cflags $(pkgs)`
-LDFLAGS = `pkg-config --libs $(pkgs)`
-
-.PHONY: all clean test
-
-all: $(targets)
-
-clean:
- rm -f $(targets) src/*.o
-
-sdtui: src/sdtui.o src/stardict.o
- $(CC) $^ -o $@ $(LDFLAGS)
-
-add-pronunciation: src/add-pronunciation.o src/stardict.o src/generator.o
- $(CC) $^ -o $@ $(LDFLAGS)
-
-test-stardict: src/test-stardict.o src/stardict.o src/generator.o
- $(CC) $^ -o $@ $(LDFLAGS)
-
-test: $(tests)
- for i in $(tests); do \
- gtester --verbose ./$$i; \
- done
-
-%.o: %.c
- $(CC) $(CFLAGS) -c $< -o $@