WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 2f6395fd authored by john's avatar john
Browse files

moved c code into its own source directory and removed redundent Makefile

parent dfb7e61e
#
# Copyright (c) 2009 The Australian National University.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License v2.0.
# You may obtain the license at
#
# http://www.opensource.org/licenses/apache2.0.php
#
# Source lists
LIBNAME=dacapoagent
SOURCES=src/dacapooptions.c src/dacapoagent.c src/dacapoexception.c src/dacapolog.c src/dacapotag.c src/dacapolock.c src/dacapomonitor.c src/dacapothread.c \
src/dacapoallocation.c src/dacapomethod.c src/dacapocallchain.c
# Linux GNU C Compiler
ifeq ($(OSNAME), linux)
# GNU Compiler options needed to build it
COMMON_FLAGS=-fno-strict-aliasing -fPIC -fno-omit-frame-pointer
# Options that help find errors
COMMON_FLAGS+= -W -Wall -Wno-unused -Wno-parentheses
ifeq ($(OPT), true)
CFLAGS=-O2 $(COMMON_FLAGS)
else
CFLAGS=-g $(COMMON_FLAGS)
endif
# Object files needed to create library
OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it
LIBRARY=lib/lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
# Libraries we are dependent on
LIBRARIES=-L $(JAVA_HOME)/jre/lib/$(LIBARCH) -lc
# Building a shared library
LINK_SHARED=$(LINK.c) -shared -o $@
endif
# Common -I options
CFLAGS += -I.
CFLAGS += -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(OSNAME)
# Default rule (build both native library and jar file)
all: $(LIBRARY)
# Build native library
$(LIBRARY): $(OBJECTS)
$(LINK_SHARED) $(OBJECTS) $(LIBRARIES)
# Cleanup the built bits
clean:
rm -f -r classes
rm -f $(LIBRARY) $(OBJECTS)
# Simple tester
test: all
LD_LIBRARY_PATH=. $(JAVA_HOME)/bin/java -agentlib:$(LIBNAME) -Xbootclasspath/a:./$(JARFILE) -version
......@@ -107,7 +107,7 @@
<target name="build-agent-linux" if="linux">
<mkdir dir="${agent-dir}/build/agent" />
<copy todir="${agent-dir}/build/agent" >
<fileset dir="${agent-dir}/src">
<fileset dir="${agent-dir}/c/src">
<include name="**.c"/>
<include name="**.h"/>
<include name="Makefile"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment