Chinaunix首页 | 论坛 | 博客
  • 博客访问: 414116
  • 博文数量: 51
  • 博客积分: 2030
  • 博客等级: 大尉
  • 技术积分: 1109
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-15 08:11
文章分类

全部博文(51)

文章存档

2022年(1)

2016年(2)

2015年(1)

2014年(2)

2013年(4)

2011年(9)

2010年(2)

2009年(5)

2008年(14)

2007年(11)

我的朋友

分类: C/C++

2011-03-10 16:33:56

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

-------------------------------------------------------------------------------------------------------

RM = /bin/rm -rf
CP = /bin/cp -rf

############################################################

CC = gcc -m32
CFLAGS = -g -Wall -D_REENTRANT  \
 -I../include

LDFLAGS =
LIBS = -L../lib -llib1 -llib2......

SRCS = c1.c  c2.c......

OBJS = $(SRCS:.c=.o)

TARGET = PrgName

############################################################

all: $(TARGET)

$(TARGET): $(OBJS)
          $(CC) -o $@ $(OBJS) $(LIBS)

.PHONY: install clean cleanobj

install: $(TARGET) 
           $(CP) $(TARGET) ${HOME}/bin/
           $(CP) $(TARGET).conf ${HOME}/conf/

clean:
             $(RM) $(TARGET) $(OBJS)

cleanobj:
                $(RM) $(OBJS)

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

-------------------------------------------------------------------------------------------------------

RM = /bin/rm -rf
CP = /bin/cp -rf

############################################################

CC = gcc -m32
CFLAGS = -g -Wall -D_REENTRANT  \
 -I../include

LDFLAGS =
LIBS = -L../lib -llib1 -llib2......

SRCS = c1.c  c2.c......

OBJS = $(SRCS:.c=.o)

TARGET = PrgName

############################################################

all: $(TARGET)

$(TARGET): $(OBJS)
          $(CC) -o $@ $(OBJS) $(LIBS)

.PHONY: install clean cleanobj

install: $(TARGET) 
           $(CP) $(TARGET) ${HOME}/bin/
           $(CP) $(TARGET).conf ${HOME}/conf/

clean:
             $(RM) $(TARGET) $(OBJS)

cleanobj:
                $(RM) $(OBJS)

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

阅读(998) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-27 18:16:51

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com