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