Skip to content
Browse files

autotool's build system

  • Loading branch information...
1 parent adeb3fa commit a1a4d3a5a7198428a5311c22155ac95d498147eb @massemanet committed Jan 30, 2010
View
3 AUTHORS
@@ -0,0 +1,3 @@
+Jeff Miller (original author)
+Alexander Harju (bug fixes)
+Mats Cronqvist (bug fixes, build system)
View
6 COPYING
@@ -0,0 +1,6 @@
+You can do anything you want with the code including using it as part
+of you plan for world domination (if your successful can I have one of
+the nicer countries please). No responsiblity it taken for the fitness
+of the any purpose, etc, etc. The only thing I ask is that if you find
+a bug and fix send me the patch. Likewise, feature suggestions and
+patches are welcome.
View
0 ChangeLog
No changes.
View
1 INSTALL
View
4 Makefile.am
@@ -0,0 +1,4 @@
+SUBDIRS = c_src src
+
+clean-local:
+ -find . -name "*~" -exec rm {} \;
View
0 NEWS
No changes.
View
11 c_src/Makefile.am
@@ -0,0 +1,11 @@
+bindir = $(ERLANG_INSTALL_LIB_DIR_inotify)/priv/bin
+bin_PROGRAMS = inotify
+inotify_SOURCES = inotify_driver.c erl_comm.c inotify_erlang.c
+inotify_INCLUDES = inotify_erlang.h
+
+inotify_CFLAGS = -I$(ERLANG_LIB_DIR_erl_interface)/include
+inotify_LDADD = -L$(ERLANG_LIB_DIR_erl_interface)/lib -lei
+
+inotifydir = $(ERLANG_INSTALL_LIB_DIR_inotify)/priv/src
+inotify_DATA = $(inotify_SOURCES) $(inotify_INCLUDES)
+
View
0 src/erl_comm.c → c_src/erl_comm.c
File renamed without changes.
View
0 src/erl_comm.h → c_src/erl_comm.h
File renamed without changes.
View
0 src/inotify_driver.c → c_src/inotify_driver.c
File renamed without changes.
View
0 src/inotify_erlang.c → c_src/inotify_erlang.c
File renamed without changes.
View
0 src/inotify_erlang.h → c_src/inotify_erlang.h
File renamed without changes.
View
29 configure.ac
@@ -0,0 +1,29 @@
+AC_INIT(erlang binding to inotify, 0.22, mats.cronqvist()gmail.com, inotify)
+
+dnl Require autoconf version >=2.59c. first one with erlang macros
+AC_PREREQ(2.59c)
+AC_COPYRIGHT(Copyright (C) 2010 Jeff Miller)
+dnl AC_REVISION($Id$)
+
+dnl Require automake version >=1.9.5.
+AM_INIT_AUTOMAKE(1.9.5)
+
+AC_PROG_CC(gcc)
+AM_PROG_CC_C_O
+
+dnl Erlang-related configuration.
+AC_ERLANG_SUBST_ROOT_DIR
+AC_ERLANG_SUBST_LIB_DIR
+AC_ERLANG_CHECK_LIB(erl_interface)
+AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION)
+erlcflags="+warn_unused_import +warn_obsolete_guard +debug_info"
+AC_SUBST([ERLCFLAGS], [$erlcflags])
+
+dnl Specify the files to instantiate.
+AC_CONFIG_FILES([ \
+ Makefile \
+ src/Makefile \
+ c_src/Makefile \
+ ])
+
+AC_OUTPUT
View
16 src/Makefile.am
@@ -0,0 +1,16 @@
+erlsrcdir = $(ERLANG_INSTALL_LIB_DIR_inotify)/src
+erlincdir = $(ERLANG_INSTALL_LIB_DIR_inotify)/src
+erlbeamdir = $(ERLANG_INSTALL_LIB_DIR_inotify)/ebin
+
+erlsrc_DATA = \
+ iwatch.erl inotify.erl
+
+erlbeam_DATA = $(patsubst %.erl, %.beam, $(erlsrc_DATA))
+
+EXTRA_DIST = $(erlsrc_DATA) $(erlinc_DATA)
+CLEANFILES = $(erlbeam_DATA)
+
+all: $(erlbeam_DATA)
+
+%.beam: %.erl
+ $(ERLC) $(ERLCFLAGS) $<

0 comments on commit a1a4d3a

Please sign in to comment.
Something went wrong with that request. Please try again.