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