Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
/ veriwell Public archive

Commit

Permalink
move build defines from command line to temporary file build.h
Browse files Browse the repository at this point in the history
to fix osx ppc build
  • Loading branch information
markhummel committed Sep 20, 2005
1 parent 8da9200 commit af5c352
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 348 deletions.
16 changes: 10 additions & 6 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ if USE_LXT
LXTLIB=../lxt/liblxt.la
ZLIB=-lz
endif
libveriwell_la_CPPFLAGS = -DBINDIR=\"$(bindir)\" \
-DLIBDIR=\"$(libdir)\" \
-DINCLUDEDIR=\"$(includedir)\" \
-DCFLAGS="\"$(CFLAGS)\"" \
-DLDFLAGS="\"$(LDFLAGS)\"" \
-DLIBS="\"$(LIBS) $(ZLIB)\""
nobase_include_HEADERS = veriuser.h acc_user.h veriuser.c

bin_PROGRAMS = veriwell
Expand Down Expand Up @@ -41,4 +35,14 @@ libveriwell_la_LIBADD = $(LXTLIB) ../replace/libreplace.la

AM_YFLAGS = -y -d

BUILT_SOURCES = build.h
CLEANFILES = build.h
build.h: Makefile
echo '#define BINDIR "$(bindir)"' >$@
echo '#define LIBDIR "$(libdir)"' >>$@
echo '#define INCLUDEDIR "$(includedir)"' >>$@
echo '#define CFLAGS "$(CFLAGS)"' >>$@
echo '#define LDFLAGS "$(LDFLAGS)"' >>$@
echo '#define LIBS "$(LIBS) $(ZLIB)"' >>$@


Loading

0 comments on commit af5c352

Please sign in to comment.