|
| 1 | +# This Makefile builds the shared library |
| 2 | +# (c) Copyright IBM Corp. 2004 All rights reserved. */ |
| 3 | +# */ |
| 4 | +# This sample program is owned by International Business Machines */ |
| 5 | +# Corporation or one of its subsidiaries ("IBM") and is copyrighted */ |
| 6 | +# and licensed, not sold. */ |
| 7 | +# */ |
| 8 | +# You may copy, modify, and distribute this sample program in any */ |
| 9 | +# form without payment to IBM, for any purpose including developing,*/ |
| 10 | +# using, marketing or distributing programs that include or are */ |
| 11 | +# derivative works of the sample program. */ |
| 12 | +# */ |
| 13 | +# The sample program is provided to you on an "AS IS" basis, without */ |
| 14 | +# warranty of any kind. IBM HEREBY EXPRESSLY DISCLAIMS ALL */ |
| 15 | +# WARRANTIES EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO*/ |
| 16 | +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTIC-*/ |
| 17 | +# ULAR PURPOSE. Some jurisdictions do not allow for the exclusion or */ |
| 18 | +# limitation of implied warranties, so the above limitations or */ |
| 19 | +# exclusions may not apply to you. IBM shall not be liable for any */ |
| 20 | +# damages you suffer as a result of using, modifying or distributing */ |
| 21 | +# the sample program or its derivatives. */ |
| 22 | +# */ |
| 23 | +# Each copy of any portion of this sample program or any derivative */ |
| 24 | +# work, must include a the above copyright notice and disclaimer of */ |
| 25 | +# warranty. */ |
| 26 | +# */ |
| 27 | +# ********************************************************************/ |
| 28 | + |
| 29 | +# This is the project title. |
| 30 | +PROJECT_TITLE = auditing |
| 31 | + |
| 32 | +# Insure that INFORMIXDIR is set. |
| 33 | +!IF "$(INFORMIXDIR)" == "" |
| 34 | +!MESSAGE |
| 35 | +!MESSAGE The INFORMIXDIR environment variable is not set. |
| 36 | +!MESSAGE This variable must be be set to the location of |
| 37 | +!MESSAGE the Informix installation. This is typically |
| 38 | +!MESSAGE X:\informix where "X" is the drive letter. |
| 39 | +!MESSAGE Use "set INFORMIXDIR X:\informix" to set this |
| 40 | +!MESSAGE variable from a DOS command prompt or the System |
| 41 | +!MESSAGE entry in the Control Panel to set it permanently. |
| 42 | +!MESSAGE |
| 43 | +!MESSAGE INFORMIXDIR has defaulted to $(HOMEDRIVE)\informix. |
| 44 | +!MESSAGE |
| 45 | +INFORMIXDIR=$(HOMEDRIVE)\informix |
| 46 | +!ENDIF |
| 47 | + |
| 48 | +# NT-specific code goes here. |
| 49 | +MI_INCLUDE="$(INFORMIXDIR)"\incl |
| 50 | +RM= del |
| 51 | +RMFLAGS= /q |
| 52 | +CC= cl |
| 53 | +CSRVRFLAGS= -DNT -DMI_SERVBUILD -DGL_NT_STATIC -DNT_MI_SAPI |
| 54 | +COPTS= -O -DMITRACE_OFF=1 |
| 55 | +# COPTS= -O |
| 56 | +CFLAGS=$(CSRVRFLAGS) -DWIN32 -I$(MI_INCLUDE)\public -I$(MI_INCLUDE) $(COPTS) |
| 57 | +LINK= link |
| 58 | +LINKFLAGS= /DLL /nologo $(LOPTS) |
| 59 | +LIBS= "$(INFORMIXDIR)"\lib\sapi.lib |
| 60 | +BINDIR= WinNT-i386 |
| 61 | +PRODDIR= . |
| 62 | + |
| 63 | +# Platform independent code goes here. |
| 64 | +# The following code was generated by BladeSmith. |
| 65 | + |
| 66 | +all: $(BINDIR) RecordAudit.jar |
| 67 | + $(MAKE) -$(MAKEFLAGS) -f WinNT.mak server |
| 68 | + |
| 69 | +.c.obj: |
| 70 | + $(CC) $(CFLAGS) /Fo$*.obj /c $? |
| 71 | + |
| 72 | +# List all object files. |
| 73 | +OBJ1=$(BINDIR)/auditing1.obj $(BINDIR)/auditing2.obj $(BINDIR)/audit_util.obj |
| 74 | +OBJ2=$(BINDIR)/auditing3.obj |
| 75 | + |
| 76 | +OBJS_ALL=$(OBJ1) $(OBJ2) |
| 77 | + |
| 78 | +# Construct the object file. |
| 79 | +$(BINDIR)/auditing1.obj: auditing1.c |
| 80 | + $(CC) $(CFLAGS) /Fo$*.obj /c $? |
| 81 | + |
| 82 | +$(BINDIR)/auditing2.obj: auditing2.c |
| 83 | + $(CC) $(CFLAGS) /Fo$*.obj /c $? |
| 84 | + |
| 85 | +$(BINDIR)/auditing3.obj: auditing3.c |
| 86 | + $(CC) $(CFLAGS) /Fo$*.obj /c $? |
| 87 | + |
| 88 | +$(BINDIR)/audit_util.obj: audit_util.c |
| 89 | + $(CC) $(CFLAGS) /Fo$*.obj /c $? |
| 90 | + |
| 91 | +RecordAudit.class: RecordAudit.java |
| 92 | + javac RecordAudit.java |
| 93 | + |
| 94 | +RecordAudit.jar: RecordAudit.class |
| 95 | + jar cf RecordAudit.jar RecordAudit.class |
| 96 | + |
| 97 | +# Construct the DLL library. |
| 98 | +$(PRODDIR)\\$(PROJECT_TITLE).bld: $(OBJS_ALL) |
| 99 | + attrib -R $(PRODDIR)\\$(PROJECT_TITLE).bld > nul |
| 100 | + $(LINK) $(LINKFLAGS) /out:$(PRODDIR)\\$(PROJECT_TITLE).bld /def:$(PROJECT_TITLE).def $(OBJS_ALL) $(LIBS) |
| 101 | + attrib +R $(PRODDIR)\\$(PROJECT_TITLE).bld |
| 102 | + |
| 103 | +server: $(PRODDIR)\\$(PROJECT_TITLE).bld |
| 104 | + |
| 105 | +clean: |
| 106 | + attrib -R $(PRODDIR)\\$(PROJECT_TITLE).bld > nul |
| 107 | + $(RM) $(RMFLAGS) $(PRODDIR)\\$(PROJECT_TITLE).bld |
| 108 | + $(RM) $(RMFLAGS) $(PRODDIR)\\$(PROJECT_TITLE).exp |
| 109 | + $(RM) $(RMFLAGS) $(PRODDIR)\\$(PROJECT_TITLE).lib |
| 110 | + $(RM) $(RMFLAGS) $(BINDIR)\\*.obj |
| 111 | + |
| 112 | +$(BINDIR): |
| 113 | + -mkdir $(BINDIR) |
| 114 | + |
| 115 | +INSTALL: |
| 116 | + attrib -R "$(INFORMIXDIR)"\extend\auditing\$(PROJECT_TITLE).bld |
| 117 | + COPY $(PROJECT_TITLE).bld "$(INFORMIXDIR)"\extend\$(PROJECT_TITLE) |
| 118 | + attrib +R "$(INFORMIXDIR)"\extend\auditing\$(PROJECT_TITLE).bld |
| 119 | + COPY RecordAudit.jar "$(INFORMIXDIR)"\extend\auditing\RecordAudit.jar |
0 commit comments