Set up an autotools system.
Supersedes the hand-hacked Makefile I was previously working with.
This commit is contained in:
parent
e8d91ad369
commit
7de9585efb
5 changed files with 65 additions and 21 deletions
28
.gitignore
vendored
Normal file
28
.gitignore
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
/arc
|
||||
/.deps/
|
||||
/.libs/
|
||||
*.lo
|
||||
*.la
|
||||
*.o
|
||||
*.a
|
||||
*.so
|
||||
*.so.*
|
||||
/Makefile
|
||||
/Makefile.in
|
||||
/aclocal.m4
|
||||
/autom4te.cache/
|
||||
/compile
|
||||
/config.h
|
||||
/config.h.in
|
||||
/config.log
|
||||
/config.status
|
||||
/config.guess
|
||||
/config.sub
|
||||
/configure
|
||||
/depcomp
|
||||
/install-sh
|
||||
/missing
|
||||
/stamp-h1
|
||||
/libtool
|
||||
/ltmain.sh
|
||||
/m4
|
18
Makefile.am
Normal file
18
Makefile.am
Normal file
|
@ -0,0 +1,18 @@
|
|||
libdir = $(bindir)
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
lib_LTLIBRARIES = libwinterop.so.la libmsi.so.la libpreload.la
|
||||
|
||||
libwinterop_so_la_SOURCES = fake-winterop.c fake-lib.c fake-lib.h
|
||||
|
||||
libmsi_so_la_SOURCES = fake-msi.c fake-lib.c fake-lib.h
|
||||
|
||||
libpreload_la_SOURCES = preload.c
|
||||
libpreload_la_LDFLAGS = -ldl
|
||||
|
||||
bin_SCRIPTS = wrapper.py makecab.py
|
||||
|
||||
install-exec-hook:
|
||||
cd $(DESTDIR)$(bindir) && $(LN_S) wrapper.py candle
|
||||
cd $(DESTDIR)$(bindir) && $(LN_S) wrapper.py light
|
|
@ -1,21 +0,0 @@
|
|||
# -*- makefile -*-
|
||||
|
||||
.SUFFIXES: .c .lo .la
|
||||
|
||||
all: libwinterop.so.la libmsi.so.la libpreload.la
|
||||
|
||||
%.la:
|
||||
libtool --mode=link gcc -o $@ $^ -rpath /usr/local/lib
|
||||
|
||||
%.lo: %.c
|
||||
libtool --mode=compile gcc -c $^
|
||||
|
||||
libwinterop.so.la: fake-winterop.lo fake-lib.lo
|
||||
|
||||
libmsi.so.la: fake-msi.lo fake-lib.lo
|
||||
|
||||
libpreload.la: preload.lo
|
||||
|
||||
clean:
|
||||
rm -rf .libs
|
||||
rm -f *.o *.lo *.la
|
2
autogen.sh
Executable file
2
autogen.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
autoreconf -i && rm -rf autom4te.cache
|
17
configure.ac
Normal file
17
configure.ac
Normal file
|
@ -0,0 +1,17 @@
|
|||
# autoconf input for Wix Linux shim.
|
||||
|
||||
AC_INIT([wix-linux-shim], [NOVERSION], [anakin@pobox.com])
|
||||
AC_CONFIG_SRCDIR([fake-lib.h])
|
||||
AC_CONFIG_MACRO_DIRS([m4])
|
||||
|
||||
AM_INIT_AUTOMAKE(foreign)
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_LIBTOOL
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
|
||||
AC_LANG([C])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
Loading…
Add table
Reference in a new issue