From 4f4a86529adc896ed4d3bc922ef88aec89e3fd53 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 4 May 2013 16:14:25 +0200 Subject: Initial commit --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 $@ -- cgit v1.2.3-70-g09d2