forked from kini/gptfdisk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
srs5694
committed
Mar 12, 2011
1 parent
bf8950c
commit 28f4098
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
CC=gcc | ||
CXX=g++ | ||
CFLAGS+=-D_FILE_OFFSET_BITS=64 | ||
CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -I/usr/local/include | ||
LDFLAGS+= | ||
LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix | ||
MBR_LIBS=support diskio diskio-unix basicmbr mbrpart | ||
LIB_OBJS=$(LIB_NAMES:=.o) | ||
MBR_LIB_OBJS=$(MBR_LIBS:=.o) | ||
LIB_HEADERS=$(LIB_NAMES:=.h) | ||
DEPEND= makedepend $(CXXFLAGS) | ||
|
||
all: gdisk sgdisk fixparts | ||
|
||
gdisk: $(LIB_OBJS) gdisk.o gpttext.o | ||
$(CXX) $(LIB_OBJS) gdisk.o gpttext.o -L/usr/local/lib $(LDFLAGS) -luuid -o gdisk | ||
|
||
sgdisk: $(LIB_OBJS) sgdisk.o | ||
$(CXX) $(LIB_OBJS) sgdisk.o -L/usr/local/lib $(LDFLAGS) -luuid -lpopt -o sgdisk | ||
|
||
fixparts: $(MBR_LIB_OBJS) fixparts.o | ||
$(CXX) $(MBR_LIB_OBJS) fixparts.o -L/usr/local/lib $(LDFLAGS) -o fixparts | ||
|
||
lint: #no pre-reqs | ||
lint $(SRCS) | ||
|
||
clean: #no pre-reqs | ||
rm -f core *.o *~ gdisk sgdisk | ||
|
||
# what are the source dependencies | ||
depend: $(SRCS) | ||
$(DEPEND) $(SRCS) | ||
|
||
$(OBJS): | ||
$(CRITICAL_CXX_FLAGS) | ||
|
||
# DO NOT DELETE |