X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=Makefile;h=6488d65f6e0080d9d690c349b77271a374452ff8;hb=cb61d1bc3450a7e79a325679701acc56825f90b6;hp=5d5dbb8028764b886bc49ece9e2ab412de2014f5;hpb=54b1d6ef8351e1842e246ad5efbb2268d2243513;p=cp210x.git diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index 5d5dbb8..6488d65 --- a/Makefile +++ b/Makefile @@ -1,10 +1,18 @@ -# CP2101 Makefile +#!/usr/bin/make -f -ifeq ("$(src)", "") - include Makefile.config - include Makefile$(KVER1)$(KVER2) -else - include $(src)/Makefile.config - include $(src)/Makefile$(KVER1)$(KVER2) -endif +STRIP = strip --strip-unneeded --remove-section=.comment --remove-section=.note +all: + -rm -rf builddir + cp -a src builddir + cd builddir && ./configure -kver $(KVER) + test -f builddir/Makefile.go + $(MAKE) -C builddir -f Makefile.go + cp builddir/cp2101.ko cp210x.ko + $(STRIP) cp210x.ko + +clean: + -rm -rf builddir cp210x.ko + + +.PHONY: all clean