summaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorkraxel <kraxel>2007-08-13 11:08:32 +0000
committerkraxel <kraxel>2007-08-13 11:08:32 +0000
commit409e6fb4eae15ef0e30333550474724f0f4ef561 (patch)
tree4315f09aa39fd1da6e0dac68f080d3e35747bf98 /GNUmakefile
parent739754ef2986c6bc37395a3847ba5baa20b5f5f5 (diff)
downloadamtterm-409e6fb4eae15ef0e30333550474724f0f4ef561.tar.gz
start gui tool
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..aec0067
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,61 @@
+# config
+srcdir = .
+VPATH = $(srcdir)
+-include Make.config
+include $(srcdir)/mk/Variables.mk
+
+CFLAGS += -Wall -Wno-pointer-sign
+CFLAGS += -DVERSION='"$(VERSION)"'
+
+TARGETS := amtterm
+
+all: build
+
+#################################################################
+# poor man's autoconf ;-)
+
+include mk/Autoconf.mk
+
+define make-config
+LIB := $(LIB)
+HAVE_GTK := $(call ac_pkg_config,gtk+-x11-2.0)
+HAVE_VTE := $(call ac_pkg_config,vte)
+endef
+
+#################################################################
+
+# build gamt?
+ifeq ($(HAVE_GTK)$(HAVE_VTE),yesyes)
+ TARGETS += gamt
+ gamt : CFLAGS += -Wno-strict-prototypes
+ gamt : pkglst += gtk+-x11-2.0 vte
+endif
+
+CFLAGS += $(shell test "$(pkglst)" != "" && pkg-config --cflags $(pkglst))
+LDLIBS += $(shell test "$(pkglst)" != "" && pkg-config --libs $(pkglst))
+
+#################################################################
+
+build: $(TARGETS)
+
+install: build
+ mkdir -p $(DESTDIR)$(bindir)
+ install -s $(TARGETS) $(DESTDIR)$(bindir)
+
+clean:
+ rm -f *.o *~
+ rm -f $(TARGETS)
+
+distclean: clean
+ rm -f Make.config
+
+#################################################################
+
+amtterm: amtterm.o redir.o tcp.o
+gamt: gamt.o
+
+#################################################################
+
+include mk/Compile.mk
+include mk/Maintainer.mk
+-include $(depfiles)