1CXX=clang++ 2#CXXFLAGS+=-O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -I/usr/local/include 3CXXFLAGS+=-O2 -Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include 4LDFLAGS+=-L/usr/local/lib 5LDLIBS+=-luuid #-licuio 6LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix 7MBR_LIBS=support diskio diskio-unix basicmbr mbrpart 8LIB_OBJS=$(LIB_NAMES:=.o) 9MBR_LIB_OBJS=$(MBR_LIBS:=.o) 10LIB_HEADERS=$(LIB_NAMES:=.h) 11DEPEND= makedepend $(CXXFLAGS) 12 13all: gdisk cgdisk sgdisk fixparts 14 15gdisk: $(LIB_OBJS) gdisk.o gpttext.o 16 $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) $(LDLIBS) -o gdisk 17 18cgdisk: $(LIB_OBJS) cgdisk.o gptcurses.o 19 $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) $(LDLIBS) -lncurses -o cgdisk 20 21sgdisk: $(LIB_OBJS) sgdisk.o gptcl.o 22 $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) $(LDLIBS) -lpopt -o sgdisk 23 24fixparts: $(MBR_LIB_OBJS) fixparts.o 25 $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts 26 27lint: #no pre-reqs 28 lint $(SRCS) 29 30clean: #no pre-reqs 31 rm -f core *.o *~ gdisk cgdisk sgdisk fixparts 32 33# what are the source dependencies 34depend: $(SRCS) 35 $(DEPEND) $(SRCS) 36 37$(OBJS): 38 $(CRITICAL_CXX_FLAGS) 39 40# DO NOT DELETE 41