resetting manifest requested domain to floor
[platform/upstream/gptfdisk.git] / Makefile.mingw
1 CC=/usr/bin/i686-pc-mingw32-gcc
2 CXX=/usr/bin/i686-pc-mingw32-g++
3 STRIP=/usr/bin/i686-pc-mingw32-strip
4 CFLAGS=-O2 -D_FILE_OFFSET_BITS=64 -g
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
7 LIB_NAMES=guid gptpart bsd parttypes attributes crc32 mbrpart basicmbr mbr gpt support diskio diskio-windows
8 MBR_LIBS=support diskio diskio-windows basicmbr mbrpart
9 LIB_SRCS=$(NAMES:=.cc)
10 LIB_OBJS=$(LIB_NAMES:=.o)
11 MBR_LIB_OBJS=$(MBR_LIBS:=.o)
12 LIB_HEADERS=$(LIB_NAMES:=.h)
13 DEPEND= makedepend $(CFLAGS)
14
15 all:    gdisk fixparts
16
17 gdisk:  $(LIB_OBJS) gdisk.o gpttext.o
18         $(CXX) $(LIB_OBJS) gdisk.o gpttext.o -lrpcrt4 -static-libgcc -o gdisk.exe
19
20 sgdisk: $(LIB_OBJS) sgdisk.o
21         $(CXX) $(LIB_OBJS) sgdisk.o -lpopt -static-libgcc -o sgdisk.exe
22
23 fixparts: $(MBR_LIB_OBJS) fixparts.o
24         $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -static-libgcc -o fixparts.exe
25
26 lint:   #no pre-reqs
27         lint $(SRCS)
28
29 clean:  #no pre-reqs
30         rm -f core *.o *~ gdisk.exe sgdisk.exe
31
32 strip:  #no pre-reqs
33         $(STRIP) gdisk.exe fixparts.exe
34
35 # what are the source dependencies
36 depend: $(SRCS)
37         $(DEPEND) $(SRCS)
38
39 $(OBJS):
40
41 # DO NOT DELETE