summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2009-08-18 13:16:10 -0400
committersrs5694 <srs5694@users.sourceforge.net>2009-08-18 13:16:10 -0400
commite7b4ff9317fc4e551cf974684eaa88697de5a28d (patch)
tree5b5cc2b2fdce62960d03ad537f151df8c581902e /Makefile
downloadsgdisk-e7b4ff9317fc4e551cf974684eaa88697de5a28d.tar.gz
Initial git repository creation, version 0.3.1 plus changes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2c55332
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+CC=gcc
+CXX=g++
+#CFLAGS=-O2 -fpack-struct
+CFLAGS=-O2 -fpack-struct -D_FILE_OFFSET_BITS=64 -g
+CXXFLAGS=-O2 -fpack-struct -D_FILE_OFFSET_BITS=64 -g
+LIB_NAMES=support crc32 mbr gpt parttypes attributes
+LIB_SRCS=$(NAMES:=.cc)
+LIB_OBJS=$(LIB_NAMES:=.o)
+LIB_HEADERS=$(LIB_NAMES:=.h)
+DEPEND= makedepend $(CFLAGS)
+
+#$(APPNAME): $(MBR2GPT_OBJS)
+# $(CC) $(MBR2GPT_OBJS) -o $@
+
+gdisk: $(LIB_OBJS) gdisk.o
+ $(CXX) $(LIB_OBJS) gdisk.o -o gdisk
+
+wipegpt: $(LIB_OBJS) wipegpt.o
+ $(CXX) $(LIB_OBJS) wipegpt.o -o wipegpt
+
+lint: #no pre-reqs
+ lint $(SRCS)
+
+clean: #no pre-reqs
+ rm -f core *.o *~ gdisk
+
+# what are the source dependencies
+depend: $(SRCS)
+ $(DEPEND) $(SRCS)
+
+$(OBJS):
+
+# DO NOT DELETE
+