• 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 -I/usr/local/include
5CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include
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:	gdisk cgdisk sgdisk fixparts
15
16gdisk:	$(LIB_OBJS) gdisk.o gpttext.o
17#	$(CXX) $(LIB_OBJS) gdisk.o gpttext.o -L/usr/local/lib $(LDFLAGS) -licuio -luuid -o gdisk
18	$(CXX) $(LIB_OBJS) gdisk.o gpttext.o -L/usr/local/lib $(LDFLAGS) -luuid -o gdisk
19
20cgdisk: $(LIB_OBJS) cgdisk.o gptcurses.o
21#	$(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o -L/usr/local/lib $(LDFLAGS) -licuio -luuid -lncurses -o cgdisk
22	$(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o -L/usr/local/lib $(LDFLAGS) -luuid -lncurses -o cgdisk
23
24sgdisk: $(LIB_OBJS) sgdisk.o gptcl.o
25#	$(CXX) $(LIB_OBJS) sgdisk.o gptcl.o -L/usr/local/lib $(LDFLAGS) -luuid -licuio -lpopt -o sgdisk
26	$(CXX) $(LIB_OBJS) sgdisk.o gptcl.o -L/usr/local/lib $(LDFLAGS) -luuid -lpopt -o sgdisk
27
28fixparts: $(MBR_LIB_OBJS) fixparts.o
29	$(CXX) $(MBR_LIB_OBJS) fixparts.o -L/usr/local/lib $(LDFLAGS) -o fixparts
30
31lint:	#no pre-reqs
32	lint $(SRCS)
33
34clean:	#no pre-reqs
35	rm -f core *.o *~ gdisk sgdisk
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