Makefile revision 0283dae41a7db4563be0fe62241ed230e4a101c0
1CC=gcc 2CXX=g++ 3CFLAGS+=-D_FILE_OFFSET_BITS=64 4CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 5LDFLAGS+= 6LIB_NAMES=crc32 support guid partnotes gptpart mbr gpt bsd parttypes attributes diskio diskio-unix 7LIB_SRCS=$(NAMES:=.cc) 8LIB_OBJS=$(LIB_NAMES:=.o) 9LIB_HEADERS=$(LIB_NAMES:=.h) 10DEPEND= makedepend $(CXXFLAGS) 11 12all: gdisk sgdisk 13 14gdisk: $(LIB_OBJS) gdisk.o gpttext.o 15 $(CXX) $(LIB_OBJS) gdisk.o gpttext.o -L/opt/local/lib -L/usr/local/lib $(LDFLAGS) -luuid -o gdisk 16 17sgdisk: $(LIB_OBJS) sgdisk.o 18 $(CXX) $(LIB_OBJS) sgdisk.o -L/opt/local/lib -L/usr/local/lib $(LDFLAGS) -luuid -lpopt -o sgdisk 19 20lint: #no pre-reqs 21 lint $(SRCS) 22 23clean: #no pre-reqs 24 rm -f core *.o *~ gdisk sgdisk 25 26# what are the source dependencies 27depend: $(SRCS) 28 $(DEPEND) $(SRCS) 29 30$(OBJS): 31 $(CRITICAL_CXX_FLAGS) 32 33# DO NOT DELETE 34