Home | History | Annotate | Download | only in gptfdisk
      1 CC=gcc
      2 CXX=g++
      3 CFLAGS=-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
      5 CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -I/sw/include -I /usr/local/include -I/opt/local/include -g
      6 LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix
      7 MBR_LIBS=support diskio diskio-unix basicmbr mbrpart
      8 #LIB_SRCS=$(NAMES:=.cc)
      9 LIB_OBJS=$(LIB_NAMES:=.o)
     10 MBR_LIB_OBJS=$(MBR_LIBS:=.o)
     11 LIB_HEADERS=$(LIB_NAMES:=.h)
     12 DEPEND= makedepend $(CFLAGS)
     13 
     14 all:	gdisk sgdisk cgdisk fixparts
     15 
     16 gdisk:	$(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 
     20 cgdisk: $(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 
     24 sgdisk: $(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 
     28 fixparts: $(MBR_LIB_OBJS) fixparts.o
     29 	$(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts
     30 
     31 testguid:	$(LIB_OBJS) testguid.o
     32 	$(CXX) $(LIB_OBJS) testguid.o -o testguid
     33 
     34 lint:	#no pre-reqs
     35 	lint $(SRCS)
     36 
     37 clean:	#no pre-reqs
     38 	rm -f core *.o *~ gdisk sgdisk
     39 
     40 # what are the source dependencies
     41 depend: $(SRCS)
     42 	$(DEPEND) $(SRCS)
     43 
     44 $(OBJS):
     45 
     46 # DO NOT DELETE
     47