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