blob: 07e2de787986df0711a73c21497b0846f3100354 [file] [log] [blame]
srs569455d92612010-03-07 22:16:07 -05001CC=/usr/bin/i586-mingw32msvc-gcc
2CXX=/usr/bin/i586-mingw32msvc-g++
3STRIP=/usr/bin/i586-mingw32msvc-strip
srs5694add79a62010-01-26 15:59:58 -05004CFLAGS=-O2 -D_FILE_OFFSET_BITS=64 -g
srs56946699b012010-02-04 00:55:30 -05005CXXFLAGS=-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
srs569455d92612010-03-07 22:16:07 -05007LIB_NAMES=guid gptpart partnotes bsd parttypes attributes crc32 mbr gpt support diskio diskio-windows
srs5694add79a62010-01-26 15:59:58 -05008LIB_SRCS=$(NAMES:=.cc)
9LIB_OBJS=$(LIB_NAMES:=.o)
10LIB_HEADERS=$(LIB_NAMES:=.h)
11DEPEND= makedepend $(CFLAGS)
12
srs5694add79a62010-01-26 15:59:58 -050013all: gdisk
14
srs569455d92612010-03-07 22:16:07 -050015gdisk: $(LIB_OBJS) gpttext.o gdisk.o
16 $(CXX) $(LIB_OBJS) gpttext.o gdisk.o -luuid -o gdisk.exe
srs5694add79a62010-01-26 15:59:58 -050017
18sgdisk: $(LIB_OBJS) sgdisk.o
srs56946699b012010-02-04 00:55:30 -050019 $(CXX) $(LIB_OBJS) sgdisk.o -lpopt -o sgdisk.exe
srs5694add79a62010-01-26 15:59:58 -050020
21lint: #no pre-reqs
22 lint $(SRCS)
23
24clean: #no pre-reqs
srs56940a697312010-01-28 21:10:52 -050025 rm -f core *.o *~ gdisk.exe sgdisk.exe
26
27strip: #no pre-reqs
28 $(STRIP) gdisk.exe
srs5694add79a62010-01-26 15:59:58 -050029
30# what are the source dependencies
31depend: $(SRCS)
32 $(DEPEND) $(SRCS)
33
34$(OBJS):
35
36# DO NOT DELETE