diff options
| author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-17 12:59:32 +0000 |
|---|---|---|
| committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-17 12:59:32 +0000 |
| commit | 46632c536288d4159d7c78cab921dc2ab2d08dc4 (patch) | |
| tree | 6440d81673049407bcd88c4f37d4d69725791e85 /Makefile | |
| parent | d4241f4f3203d11cf8ded804df36bc97053df333 (diff) | |
| download | python-dmidecode-46632c536288d4159d7c78cab921dc2ab2d08dc4.tar.gz python-dmidecode-46632c536288d4159d7c78cab921dc2ab2d08dc4.tar.xz python-dmidecode-46632c536288d4159d7c78cab921dc2ab2d08dc4.zip | |
Debianizing dmidecode.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@110 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 76 |
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 |
