Permalink
Browse files

t: use autotools also for t/

  • Loading branch information...
1 parent 1c6b523 commit 6fc0151acc850deaf34dfe3c3a48669c50377a9c @steveschnepp steveschnepp committed Jul 3, 2014
Showing with 17 additions and 28 deletions.
  1. +1 −1 configure.ac
  2. +4 −2 t/.gitignore
  3. +0 −25 t/Makefile
  4. +12 −0 t/Makefile.am
View
@@ -23,5 +23,5 @@ AC_PROG_LN_S
AC_FUNC_FORK
CC_CHECK_CFLAGS_APPEND([-Wall -Wextra -Werror -pedantic -Wno-format])
-AC_CONFIG_FILES([Makefile src/node/Makefile src/plugins/Makefile])
+AC_CONFIG_FILES([Makefile src/node/Makefile src/plugins/Makefile t/Makefile])
AC_OUTPUT
View
@@ -1,2 +1,4 @@
-nb_env
-ok_plugin
+/Makefile
+/Makefile.in
+/nb_env
+/ok_plugin
View
@@ -1,25 +0,0 @@
-PLUGINS:=ok_plugin nb_env
-
-all: $(PLUGINS)
-
-%.h:
-%.c:
-
-# Generic plugin compilation
-%.o: %.c
- $(CC) -c -o $@ $^ $(CFLAGS)
-
-# Common plugin code
-common.o: common.c common.h
- $(CC) -c -o $@ $< $(CFLAGS)
-
-# Plugin executable gen
-%: %.o common.o
- $(CC) -o $@ $^ $(LDFLAGS)
-
-clean:
- rm -f *.o $(PLUGINS)
-
-.PHONY: all clean
-.SUFFIXES:
-MAKEFLAGS += -r
View
@@ -0,0 +1,12 @@
+# Copyright (C) 2014 Steve Schnepp <steve.schnepp@pwkf.org> - All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2 or v.3.
+#
+
+include $(top_srcdir)/common.am
+
+sbin_PROGRAMS = ok_plugin nb_env
+ok_plugin_SOURCES = ok_plugin.c common.c
+nb_env_SOURCES = nb_env.c common.c

0 comments on commit 6fc0151

Please sign in to comment.