全部博文(51)
分类: C/C++
2011-03-10 16:33:56
CP = /bin/cp -rf
CC = gcc -m32
LIBDIR = -L../lib LIBS = -lemvdbc -lemvconf -lzoom_crypt OBJS = emvSetupGuide.o PROGS = emvSetupGuide
all:${PROGS}
install:
.C.o:
clean:
cleanobj: -------------------------------------------------------------------------------------------------------
RM = /bin/rm -rf ############################################################
CC = gcc -m32
LDFLAGS = SRCS = c1.c c2.c...... OBJS = $(SRCS:.c=.o) TARGET = PrgName ############################################################ all: $(TARGET)
$(TARGET): $(OBJS) .PHONY: install clean cleanobj
install: $(TARGET)
clean:
cleanobj: |
CP = /bin/cp -rf
CC = gcc -m32
LIBDIR = -L../lib LIBS = -lemvdbc -lemvconf -lzoom_crypt OBJS = emvSetupGuide.o PROGS = emvSetupGuide
all:${PROGS}
install:
.C.o:
clean:
cleanobj: -------------------------------------------------------------------------------------------------------
RM = /bin/rm -rf ############################################################
CC = gcc -m32
LDFLAGS = SRCS = c1.c c2.c...... OBJS = $(SRCS:.c=.o) TARGET = PrgName ############################################################ all: $(TARGET)
$(TARGET): $(OBJS) .PHONY: install clean cleanobj
install: $(TARGET)
clean:
cleanobj: |
CP = /bin/cp -rf
RM = /bin/rm -rf
CC = gcc -m32
#CFLAGS = -g -Wall -D_REENTRANT -DHaveSNMPVersion -DLM_DEBUG
#CFLAGS = -g -Wall -D_REENTRANT -DHaveSNMPVersion -DIPZY -DLM_DEBUG -DEMV2
CFLAGS = -g -Wall -D_REENTRANT -DLM_DEBUG -DEMV2
LIBDIR = -L../lib
INCL = -I../include
LIBS = -lemvdbc -lemvconf -lzoom_crypt
OBJS = emvSetupGuide.o
PROGS = emvSetupGuide
all:${PROGS}
${PROGS}:${OBJS}
${CC} ${CFLAGS} ${INCL} ${LIBDIR} -o $@ ${OBJS} ${LIBS}
install:
$(CP) emvSetupGuide ${EMV}/bin/
.c.o:
${CC} ${CFLAGS} ${INCL} -c $<
.C.o:
${CC} ${CFLAGS} ${INCL} -c $<
clean:
$(RM) *.o deal core core.* *.core emvSetupGuide
cleanobj:
$(RM) *.o deal core core.* *.core
chinaunix网友2011-03-27 18:16:51
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com