From bf8950cad0285ee6ab8a896e8d0a30c5fb62c7af Mon Sep 17 00:00:00 2001 From: srs5694 Date: Sat, 12 Mar 2011 01:23:12 -0500 Subject: Version 0.7.0 --- Makefile.mac | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile.mac') diff --git a/Makefile.mac b/Makefile.mac index 9c55308..c9fe488 100644 --- a/Makefile.mac +++ b/Makefile.mac @@ -2,13 +2,15 @@ CC=gcc CXX=g++ CFLAGS=-O2 -D_FILE_OFFSET_BITS=64 -g CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include -I/opt/local/include -g -LIB_NAMES=crc32 support guid partnotes gptpartnotes gptpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix -LIB_SRCS=$(NAMES:=.cc) +LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix +MBR_LIBS=support diskio diskio-unix basicmbr mbrpart +#LIB_SRCS=$(NAMES:=.cc) LIB_OBJS=$(LIB_NAMES:=.o) +MBR_LIB_OBJS=$(MBR_LIBS:=.o) LIB_HEADERS=$(LIB_NAMES:=.h) DEPEND= makedepend $(CFLAGS) -all: gdisk sgdisk +all: gdisk sgdisk fixparts gdisk: $(LIB_OBJS) gpttext.o gdisk.o $(CXX) $(LIB_OBJS) gpttext.o gdisk.o -o gdisk @@ -16,6 +18,9 @@ gdisk: $(LIB_OBJS) gpttext.o gdisk.o sgdisk: $(LIB_OBJS) sgdisk.o $(CXX) $(LIB_OBJS) sgdisk.o -L/opt/local/lib -lpopt -o sgdisk +fixparts: $(MBR_LIB_OBJS) fixparts.o + $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts + testguid: $(LIB_OBJS) testguid.o $(CXX) $(LIB_OBJS) testguid.o -o testguid -- cgit v1.2.1