1CXX=i686-w64-mingw32-g++ 2STRIP=i686-w64-mingw32-strip 3CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -static -static-libgcc -static-libstdc++ 4#CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include -I/opt/local/include 5LDFLAGS+=-static -static-libgcc -static-libstdc++ 6LDLIBS+=-lrpcrt4 7LIB_NAMES=guid gptpart bsd parttypes attributes crc32 mbrpart basicmbr mbr gpt support diskio diskio-windows 8MBR_LIBS=support diskio diskio-windows basicmbr mbrpart 9LIB_SRCS=$(NAMES:=.cc) 10LIB_OBJS=$(LIB_NAMES:=.o) 11MBR_LIB_OBJS=$(MBR_LIBS:=.o) 12LIB_HEADERS=$(LIB_NAMES:=.h) 13DEPEND= makedepend $(CFLAGS) 14 15all: gdisk sgdisk fixparts 16 17gdisk: $(LIB_OBJS) gdisk.o gpttext.o 18 $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) $(LDLIBS) -o gdisk32.exe 19 20cgdisk: $(LIB_OBJS) cgdisk.o gptcurses.o 21 $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) $(LDLIBS) -lncursesw -o cgdisk32.exe 22 23sgdisk: $(LIB_OBJS) sgdisk.o gptcl.o 24 $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) $(LDLIBS) -lpopt -lintl -liconv -o sgdisk32.exe 25 26fixparts: $(MBR_LIB_OBJS) fixparts.o 27 $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts32.exe 28 29lint: #no pre-reqs 30 lint $(SRCS) 31 32clean: #no pre-reqs 33 rm -f core *.o *~ gdisk32.exe cgdisk32.exe sgdisk32.exe fixparts32.exe 34 35strip: #no pre-reqs 36 $(STRIP) gdisk32.exe cgdisk32.exe sgdisk32.exe fixparts32.exe 37 38# what are the source dependencies 39depend: $(SRCS) 40 $(DEPEND) $(SRCS) 41 42$(OBJS): 43 44# DO NOT DELETE 45