summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile76
1 files changed, 0 insertions, 76 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 6da92fc..0000000
--- a/Makefile
+++ /dev/null
@@ -1,76 +0,0 @@
-#.
-#. DMI Decode Python Module
-#.
-#. (C) 2008 Nima Talebi <nima@it.net.au>
-#.
-#. Licensed under the GNU Public License v3
-#.
-
-PY := $(shell python -V 2>&1 |sed -e 's/.\(ython\) \(2\.[0-9]\)\..*/p\1\2/')
-CC := gcc
-RM := rm -f
-SRC_D := src
-OBJ_D := lib
-CFLAGS = -g -D_XOPEN_SOURCE=600
-CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align
-CFLAGS += -Wwrite-strings -Wmissing-prototypes -Winline -Wundef #-Wcast-qual
-CFLAGS += -pthread -fno-strict-aliasing -DNDEBUG -fPIC
-CFLAGS += -I/usr/include/$(PY)
-CFLAGS += -O3
-#CFLAGS += -DNDEBUG
-#CFLAGS += -DBIGENDIAN
-#CFLAGS += -DALIGNMENT_WORKAROUND
-#LDFLAGS = -lefence
-LDFLAGS =
-SOFLAGS = -pthread -shared -L/home/nima/dev-room/projects/dmidecode -lutil
-SO = /usr/lib/$(PY)/site-packages/dmidecode.so
-
-#. Search
-vpath %.o $(OBJ_D)
-vpath %.c $(SRC_D)
-vpath %.h $(SRC_D)
-vpath % $(OBJ_D)
-
-###############################################################################
-install: build
- $(PY) src/setup.py install
-
-build:
- $(PY) src/setup.py build
-
-
-###############################################################################
-SO: libdmidecode.so
- cp $< $@
- nm -u $@
-
-libdmidecode.so: dmihelper.o util.o dmioem.o dmidecode.o dmidecodemodule.o
- $(CC) $(LDFLAGS) $(SOFLAGS) $^ -o $@
-
-dmidecodemodule.o: dmidecodemodule.c
- $(CC) $(CFLAGS) -c -o $@ $<
-
-dmidecode.o: dmidecode.c version.h types.h util.h config.h dmidecode.h dmioem.h
- $(CC) $(CFLAGS) -c -o $@ $<
-
-dmihelper.o: dmihelper.c dmihelper.h
- $(CC) $(CFLAGS) -c -o $@ $<
-
-util.o: util.c types.h util.h config.h
- $(CC) $(CFLAGS) -c -o $@ $<
-
-dmioem.o: dmioem.c types.h dmidecode.h dmioem.h
- $(CC) $(CFLAGS) -c -o $@ $<
-
-
-
-###############################################################################
-uninstall:
- rm -f $(SO)
-
-clean :
- $(PY) src/setup.py clean
- -$(RM) lib/*.so lib/*.o core
- -rm -rf build
-
-.PHONY: install clean uninstall module