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