当前位置: 技术问答>linux和unix
makefile 的问题 继续请教
来源: 互联网 发布时间:2016-05-26
本文导语: 我现在的程序是这样的 : 1 # Define a macro for the object files 2 #OBJECTS= 3des.o tripdes.o process 3 # Define a macro for the library file 4 LIBES= -LS 5 SOURCED=./ 6 LIBD=../lib 7 RUND=../run 8 CFLAGS = -I.....
我现在的程序是这样的
:
1 # Define a macro for the object files
2 #OBJECTS= 3des.o tripdes.o process
3 # Define a macro for the library file
4 LIBES= -LS
5 SOURCED=./
6 LIBD=../lib
7 RUND=../run
8 CFLAGS = -I../include
9 CC = g++
10 VPATH=../include:../lib
11 vpath %.h ../include
12
13 objects = i2c.o
14 anlysxml.o
15 strsplit.o
16 mesq.o
17 unpack.o
18 pinganback.o
19 pacificback.o
20 pack2pingan.o
21 pack2pacific.o
22 all: $(objects)
23 $(objects): %.o: %.c
24 $(CC) -c $(CFLAGS) $
:
1 # Define a macro for the object files
2 #OBJECTS= 3des.o tripdes.o process
3 # Define a macro for the library file
4 LIBES= -LS
5 SOURCED=./
6 LIBD=../lib
7 RUND=../run
8 CFLAGS = -I../include
9 CC = g++
10 VPATH=../include:../lib
11 vpath %.h ../include
12
13 objects = i2c.o
14 anlysxml.o
15 strsplit.o
16 mesq.o
17 unpack.o
18 pinganback.o
19 pacificback.o
20 pack2pingan.o
21 pack2pacific.o
22 all: $(objects)
23 $(objects): %.o: %.c
24 $(CC) -c $(CFLAGS) $