Skip to content
Snippets Groups Projects
Commit 1fda5e0e authored by an7s's avatar an7s
Browse files

moving towards autoconf

Former-commit-id: 7f0232b63e9065769778b9e5e90b2c46c858e568
parent 81c7b0c1
No related branches found
No related tags found
No related merge requests found
......@@ -175,6 +175,7 @@ beaengine/obj/Linux.gnu.Debug/beaengineSources/CMakeFiles/BeaEngine_s_d.dir/link
beaengine/obj/Linux.gnu.Debug/beaengineSources/CMakeFiles/BeaEngine_s_d.dir/progress.make -text
beaengine/obj/Linux.gnu.Debug/beaengineSources/CMakeFiles/progress.marks -text
/build.sh -text
/configure.in -text
/distclean.sh -text
include/i686/config.h -text
include/x86_64/config.h -text
......@@ -623,7 +624,7 @@ tools/transforms/sample_meds_int.annot -text
tools/transforms/transformutils.cpp -text
tools/transforms/transformutils.h -text
tools/watch_syscall/LICENSE.txt -text
tools/watch_syscall/Makefile -text
tools/watch_syscall/Makefile.in -text
tools/watch_syscall/wsc_driver.cpp -text
tools/watch_syscall/wsc_instrument.cpp -text
tools/watch_syscall/wsc_instrument.hpp -text
......
AC_INIT()
AC_ARG_ENABLE([cgc], [ --enable-cgc defines CGC when compiling ])
EXTRA_CXXFLAGS=-O3
CXX=g++
LD=g++
if test "$enable_cgc" = yes; then
EXTRA_CXXFLAGS=-DCGC
fi
AC_SUBST(EXTRA_CXXFLAGS)
AC_SUBST(CXX)
AC_SUBST(LD)
AC_OUTPUT(tools/watch_syscall/Makefile
)
CC=g++
CFLAGS= -g -Wall -DCGC
CC=@CXX@
CFLAGS= @EXTRA_CXXFLAGS@
INCLUDE=-I. -I ../../include/ -I../include -I../xform -I../../beaengine/include -I../../libIRDB/include/ -I../../libMEDSannotation/include/ -I../libtransform/include/ -I../transforms
LIBS=-L../../lib -lxform -lIRDB-core -lIRDB-cfg -lIRDB-util -lIRDB-syscall -lBeaEngine_s_d -lpqxx -lMEDSannotation -ltransform ../transforms/Rewrite_Utility.o
program=watch_syscall.exe
OBJS=wsc_driver.o wsc_instrument.o
all: $(program)
@echo "----------------------------------------"
@echo "- Watch system calls -- Build complete -"
@echo "----------------------------------------"
OBJS=wsc_driver.o wsc_instrument.o
.SUFFIXES: .o .c .exe .cpp .hpp
-include $(OBJS:.o=.d)
%.o: %.cpp
$(CC) $(INCLUDE) $(CFLAGS) -c $<
@#
......@@ -33,11 +28,10 @@ OBJS=wsc_driver.o wsc_instrument.o
clean:
rm -f *.o core *.exe
rm -f *.o core *.exe *.d
$(program): ../../lib/*.a
$(program): $(OBJS)
$(CC) $(CFLAGS) $^ $(INCLUDE) $(LIBS) -o $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment