Lines 1-10
Link Here
|
1 |
--- Makefile.freebsd 2011-09-11 00:51:13.000000000 +0000 |
1 |
--- Makefile.freebsd 2011-09-11 00:51:13.000000000 +0000 |
2 |
+++ Makefile.freebsd 2011-09-18 20:22:41.000000000 +0000 |
2 |
+++ Makefile.freebsd 2015-01-22 02:35:12.000000000 -0700 |
3 |
@@ -1,5 +1,5 @@ |
3 |
@@ -1,8 +1,8 @@ |
4 |
-CC=gcc |
4 |
-CC=gcc |
5 |
-CXX=g++ |
5 |
-CXX=g++ |
6 |
+CC?=gcc |
6 |
+CC?=gcc |
7 |
+CXX?=g++ |
7 |
+CXX?=g++ |
8 |
CFLAGS+=-D_FILE_OFFSET_BITS=64 |
8 |
CFLAGS+=-D_FILE_OFFSET_BITS=64 |
9 |
CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -I/usr/local/include |
9 |
#CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -I/usr/local/include |
10 |
#CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include |
10 |
-CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include |
|
|
11 |
+CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 ${CPPFLAGS} |
12 |
LDFLAGS+= |
13 |
LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix |
14 |
MBR_LIBS=support diskio diskio-unix basicmbr mbrpart |
15 |
@@ -15,18 +15,18 @@ |
16 |
|
17 |
gdisk: $(LIB_OBJS) gdisk.o gpttext.o |
18 |
# $(CXX) $(LIB_OBJS) gdisk.o gpttext.o -L/usr/local/lib $(LDFLAGS) -licuio -luuid -o gdisk |
19 |
- $(CXX) $(LIB_OBJS) gdisk.o gpttext.o -L/usr/local/lib $(LDFLAGS) -luuid -o gdisk |
20 |
+ $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -luuid -o gdisk |
21 |
|
22 |
cgdisk: $(LIB_OBJS) cgdisk.o gptcurses.o |
23 |
# $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o -L/usr/local/lib $(LDFLAGS) -licuio -luuid -lncurses -o cgdisk |
24 |
- $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o -L/usr/local/lib $(LDFLAGS) -luuid -lncurses -o cgdisk |
25 |
+ $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -luuid -lncurses -o cgdisk |
26 |
|
27 |
sgdisk: $(LIB_OBJS) sgdisk.o gptcl.o |
28 |
# $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o -L/usr/local/lib $(LDFLAGS) -luuid -licuio -lpopt -o sgdisk |
29 |
- $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o -L/usr/local/lib $(LDFLAGS) -luuid -lpopt -o sgdisk |
30 |
+ $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -luuid -lpopt -o sgdisk |
31 |
|
32 |
fixparts: $(MBR_LIB_OBJS) fixparts.o |
33 |
- $(CXX) $(MBR_LIB_OBJS) fixparts.o -L/usr/local/lib $(LDFLAGS) -o fixparts |
34 |
+ $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts |
35 |
|
36 |
lint: #no pre-reqs |
37 |
lint $(SRCS) |