- 论坛徽章:
- 0
|
这是makefile,谢谢斑竹的赐教
include $(ORACLE_HOME)/precomp/env_precomp.mk
PROCUSERFLAGS=\'mode=ansi\' \'define=_IBS_PROC\'
CUSERFLAGS= -DIBS_DEBUG
WORKDIR=$(HOME)
INCLDIR=-I$(WORKDIR)/def -I$(TUXDIR)/include
LIBDIR=-L$(WORKDIR)/lib -L$(ORACLE_HOME)/precomp/lib -L$(ORACLE_HOME)/network/lib -L$(ORACLE_HOME)/rdbms/lib -L$(ORACLE_HOME)/lib -b
PROCFLAGS=-D_INKERNEL
CFLAGS=-g -belf -DDEBUG -DNT_TERM $(INCLDIR) $(LIBDIR)
LIB=-lcmud -lsign -lwsc -lbuft -lnws -lnwi -lfml -lfml32 -lgp -lnsl -lsocket -lbase -lcurses -lcenc\\
-lcore3 -lsql -lclient -lnlsrtl3 -lcommon -lm -lc
CC= cc -Bdynamic
PRSOURCE=main_ctrl.pc
OBJ1=main_ctrl.o
all: eexchadm
eexchadm: $(OBJ1)
$(CC) $(CFLAGS) $(OBJ1) -g -o $@ $(LIB)
@mv $@ $(BINDIR)
-@ echo \" ----$@ loaded.\"
.PRECIOUS : $(PCSOURCE) $(CSOURCE)
.SUFFIXES : .pc .c .o .type .h
.pc.o:
$(PROC) $(PROCFLAGS) iname=$* lines=true parse=full include=\"/home/adm20/def\" include=/tuxedo/include define=_INKERNEL
$(CC) $(CFLAG) -c $*.c -I$(HOME)/def -I/tuxedo/include
@rm $*.c
.c.o:
$(CC) $(CFLAG) -c $*.c |
|