jmhodges (owner)

Revisions

gist: 151169 Download_button fork
public
Public Clone URL: git://gist.github.com/151169.git
Embed All Files: show embed
autotools_patch_for_pez.patch #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff --git a/Makefile.am b/Makefile.am
index 38accd4..d6a3196 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,10 +10,15 @@ AUTOMAKE_OPTIONS = foreign
 
 bin_PROGRAMS = pez
 
-pez_SOURCES = pez.c pezmain.c pez.h pezdef.h
+pez_SOURCES = pez.c pezmain.c
+pez_CFLAGS = $(AM_CFLAGS)
 
 # TODO how to add get versioning? (e.g., libpez.so.1.3.0)
 # More pressing TODO : how to get this to build?
 # libpez_so_SOURCES = pez.c pez.h pezdef.h
 
 EXTRA_DIST = doc/COPYING doc/CREDITS doc/TODO doc/ctags
+
+lib_LTLIBRARIES = libpez.la
+
+libpez_la_SOURCES = pez.c
\ No newline at end of file
diff --git a/configure.ac b/configure.ac
index ff175e4..a094adb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,9 +5,12 @@ AC_PREREQ(2.61)
 
 AC_INIT(pez, 1.3, pete.elmore@gmail.com)
 AC_CONFIG_SRCDIR([pez.c])
+
 # AM_INIT_AUTOMAKE(pez, 1.3)
 AM_INIT_AUTOMAKE
 
+AC_PROG_LIBTOOL
+
 AC_CANONICAL_HOST
 
 # Checks for programs.
@@ -43,6 +46,8 @@ AC_DEFINE(MEMSTAT)
 AC_DEFINE(EXPORT)
 AC_DEFINE(READONLYSTRINGS)
 
+AC_PROG_INSTALL
+
 # AC_CONFIG_FILES([Makefile])
 AC_OUTPUT(Makefile)
 # AC_OUTPUT(Makefile lib/Makefile doc/Makefile)