srs5694 | 55d9261 | 2010-03-07 22:16:07 -0500 | [diff] [blame] | 1 | CC=/usr/bin/i586-mingw32msvc-gcc |
| 2 | CXX=/usr/bin/i586-mingw32msvc-g++ |
| 3 | STRIP=/usr/bin/i586-mingw32msvc-strip |
srs5694 | add79a6 | 2010-01-26 15:59:58 -0500 | [diff] [blame] | 4 | CFLAGS=-O2 -D_FILE_OFFSET_BITS=64 -g |
srs5694 | 6699b01 | 2010-02-04 00:55:30 -0500 | [diff] [blame] | 5 | CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -g |
| 6 | #CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include -I/opt/local/include -g |
srs5694 | 55d9261 | 2010-03-07 22:16:07 -0500 | [diff] [blame] | 7 | LIB_NAMES=guid gptpart partnotes bsd parttypes attributes crc32 mbr gpt support diskio diskio-windows |
srs5694 | add79a6 | 2010-01-26 15:59:58 -0500 | [diff] [blame] | 8 | LIB_SRCS=$(NAMES:=.cc) |
| 9 | LIB_OBJS=$(LIB_NAMES:=.o) |
| 10 | LIB_HEADERS=$(LIB_NAMES:=.h) |
| 11 | DEPEND= makedepend $(CFLAGS) |
| 12 | |
srs5694 | add79a6 | 2010-01-26 15:59:58 -0500 | [diff] [blame] | 13 | all: gdisk |
| 14 | |
srs5694 | 55d9261 | 2010-03-07 22:16:07 -0500 | [diff] [blame] | 15 | gdisk: $(LIB_OBJS) gpttext.o gdisk.o |
| 16 | $(CXX) $(LIB_OBJS) gpttext.o gdisk.o -luuid -o gdisk.exe |
srs5694 | add79a6 | 2010-01-26 15:59:58 -0500 | [diff] [blame] | 17 | |
| 18 | sgdisk: $(LIB_OBJS) sgdisk.o |
srs5694 | 6699b01 | 2010-02-04 00:55:30 -0500 | [diff] [blame] | 19 | $(CXX) $(LIB_OBJS) sgdisk.o -lpopt -o sgdisk.exe |
srs5694 | add79a6 | 2010-01-26 15:59:58 -0500 | [diff] [blame] | 20 | |
| 21 | lint: #no pre-reqs |
| 22 | lint $(SRCS) |
| 23 | |
| 24 | clean: #no pre-reqs |
srs5694 | 0a69731 | 2010-01-28 21:10:52 -0500 | [diff] [blame] | 25 | rm -f core *.o *~ gdisk.exe sgdisk.exe |
| 26 | |
| 27 | strip: #no pre-reqs |
| 28 | $(STRIP) gdisk.exe |
srs5694 | add79a6 | 2010-01-26 15:59:58 -0500 | [diff] [blame] | 29 | |
| 30 | # what are the source dependencies |
| 31 | depend: $(SRCS) |
| 32 | $(DEPEND) $(SRCS) |
| 33 | |
| 34 | $(OBJS): |
| 35 | |
| 36 | # DO NOT DELETE |