|
| 1 | +# (c) Copyright IBM Corp. 2004 All rights reserved. */ |
| 2 | +# */ |
| 3 | +# This sample program is owned by International Business Machines */ |
| 4 | +# Corporation or one of its subsidiaries ("IBM") and is copyrighted */ |
| 5 | +# and licensed, not sold. */ |
| 6 | +# */ |
| 7 | +# You may copy, modify, and distribute this sample program in any */ |
| 8 | +# form without payment to IBM, for any purpose including developing,*/ |
| 9 | +# using, marketing or distributing programs that include or are */ |
| 10 | +# derivative works of the sample program. */ |
| 11 | +# */ |
| 12 | +# The sample program is provided to you on an "AS IS" basis, without */ |
| 13 | +# warranty of any kind. IBM HEREBY EXPRESSLY DISCLAIMS ALL */ |
| 14 | +# WARRANTIES EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO*/ |
| 15 | +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTIC-*/ |
| 16 | +# ULAR PURPOSE. Some jurisdictions do not allow for the exclusion or */ |
| 17 | +# limitation of implied warranties, so the above limitations or */ |
| 18 | +# exclusions may not apply to you. IBM shall not be liable for any */ |
| 19 | +# damages you suffer as a result of using, modifying or distributing */ |
| 20 | +# the sample program or its derivatives. */ |
| 21 | +# */ |
| 22 | +# Each copy of any portion of this sample program or any derivative */ |
| 23 | +# work, must include a the above copyright notice and disclaimer of */ |
| 24 | +# warranty. */ |
| 25 | +# */ |
| 26 | +# ********************************************************************/ |
| 27 | + |
| 28 | +# This Makefile builds the logger libraries |
| 29 | +# TARGET must be set to the location/filename |
| 30 | +# of the platform-specific make include file. |
| 31 | + |
| 32 | +TARGET=$(INFORMIXDIR)/incl/dbdk/makeinc.linux86_64 |
| 33 | +include $(TARGET) |
| 34 | +# =============================================================== |
| 35 | +# This is the project title. |
| 36 | +PROJECT_TITLE = auditing |
| 37 | + |
| 38 | +BINDIR = $(OS_NAME)-$(PLATFORM) |
| 39 | + |
| 40 | +# Platform independent code goes here. |
| 41 | +# The following code was generated by BladeSmith. |
| 42 | + |
| 43 | +LCURL = -lcurl |
| 44 | +MI_INCL = $(INFORMIXDIR)/incl |
| 45 | +COPTS=-O -DMI_SERVBUILD -DMITRACE_OFF=1 |
| 46 | +CFLAGS =$(COPTS) $(CC_PIC) -I$(MI_INCL)/public -I$(MI_INCL) |
| 47 | +PTCFLAGS =$(LCURL) $(COPTS) $(CC_PIC) -I$(MI_INCL)/public -I$(MI_INCL) |
| 48 | +LINKFLAGS = $(SHLIBLFLAG) $(SYMFLAG) |
| 49 | +LIBS = |
| 50 | + |
| 51 | +PROJECT_OBJS= $(BINDIR)/auditing1.$(OBJSUFF) $(BINDIR)/auditing2.$(OBJSUFF) $(BINDIR)/auditing3.$(OBJSUFF) $(BINDIR)/audit_util.$(OBJSUFF) |
| 52 | + |
| 53 | +PROJECT_LIBS=$(BINDIR)/$(PROJECT_TITLE).$(BLDLIB_SUFF) |
| 54 | + |
| 55 | +all: $(BINDIR) RecordAudit.jar |
| 56 | + $(MAKE) $(MAKEFLAGS) -f UNIX.mak server |
| 57 | + |
| 58 | +# Construct the object file. |
| 59 | + |
| 60 | +$(BINDIR)/auditing1.$(OBJSUFF) : auditing1.c |
| 61 | + $(CC) $(CFLAGS) -o $@ -c $? |
| 62 | + |
| 63 | +$(BINDIR)/auditing2.$(OBJSUFF) : auditing2.c |
| 64 | + $(CC) $(PTCFLAGS) -o $@ -c $? |
| 65 | + |
| 66 | +$(BINDIR)/auditing3.$(OBJSUFF) : auditing3.c |
| 67 | + $(CC) $(CFLAGS) -o $@ -c $? |
| 68 | + |
| 69 | +$(BINDIR)/audit_util.$(OBJSUFF) : audit_util.c |
| 70 | + $(CC) $(PTCFLAGS) -o $@ -c $? |
| 71 | + |
| 72 | +RecordAudit.class: RecordAudit.java |
| 73 | + javac RecordAudit.java |
| 74 | + |
| 75 | +RecordAudit.jar: RecordAudit.class |
| 76 | + jar cf RecordAudit.jar RecordAudit.class |
| 77 | + |
| 78 | +# Construct the shared library. |
| 79 | +# Do *NOT* link with client side libraries. |
| 80 | +# You will see many undefined symbols during linking. This is |
| 81 | +# normal since those symbols are resolved when the server loads |
| 82 | +# your shared object. |
| 83 | +# |
| 84 | +# ATTENTION: |
| 85 | +# The ld "Symbol referencing errors" warning is normal. |
| 86 | +# These unresolved symbols are resolved when the server |
| 87 | +# loads the shared object. This list should be examined, however, |
| 88 | +# for symbol names that may have been inadvertently misspelled. |
| 89 | +# Misspelled symbol names will not be resolved here or at load time. |
| 90 | +# |
| 91 | +$(PROJECT_LIBS) : $(PROJECT_OBJS) |
| 92 | + $(SHLIBLOD) $(LCURL) $(LINKFLAGS) -o $(PROJECT_LIBS) \ |
| 93 | + $(PROJECT_OBJS) $(LIBS) $(DATABLADE_LIBS) 2> link.errs |
| 94 | + |
| 95 | +server: $(PROJECT_LIBS) |
| 96 | + |
| 97 | +clean: |
| 98 | + $(RM) $(RMFLAGS) $(PROJECT_LIBS) $(PROJECT_OBJS) RecordAudit.class RecordAudit.jar |
| 99 | + |
| 100 | +$(BINDIR): |
| 101 | + -mkdir $(BINDIR) |
| 102 | + |
| 103 | +INSTALL: |
| 104 | + cp $(BINDIR)/$(PROJECT_TITLE).bld $(INFORMIXDIR)/extend/auditing/$(PROJECT_TITLE).bld |
| 105 | + cp RecordAudit.jar $(INFORMIXDIR)/extend/auditing/RecordAudit.jar |
0 commit comments