Gordons Projects

--> Projects Top-Level GIT

Updating for various stuff and bugs. CM3+ and PiA3+
[wiringPi] / wiringPi / Makefile
index e1868b9..d8639e8 100644 (file)
@@ -36,10 +36,10 @@ DYNAMIC=libwiringPi.so.$(VERSION)
 
 #DEBUG = -g -O0
 DEBUG  = -O2
-CC     = gcc
 INCLUDE        = -I.
 DEFS   = -D_GNU_SOURCE
 CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC
+#CFLAGS        = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Wconversion -Winline $(INCLUDE) -pipe -fPIC
 
 LIBS    = -lm -lpthread -lrt -lcrypt
 
@@ -68,13 +68,9 @@ OBJ  =       $(SRC:.c=.o)
 
 all:           $(DYNAMIC)
 
-static:                $(STATIC)
-
-$(STATIC):     $(OBJ)
-       $Q echo "[Link (Static)]"
-       $Q ar rcs $(STATIC) $(OBJ)
-       $Q ranlib $(STATIC)
-#      @size   $(STATIC)
+.PHONY:        static
+static:        
+               $Q cat noMoreStatic
 
 $(DYNAMIC):    $(OBJ)
        $Q echo "[Link (Dynamic)]"
@@ -107,15 +103,6 @@ install:   $(DYNAMIC)
        $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION)     $(DESTDIR)/lib/libwiringPi.so
        $Q $(LDCONFIG)
 
-.PHONY:        install-static
-install-static:        $(STATIC)
-       $Q echo "[Install Headers]"
-       $Q install -m 0755 -d                                           $(DESTDIR)$(PREFIX)/include
-       $Q install -m 0644 $(HEADERS)                                   $(DESTDIR)$(PREFIX)/include
-       $Q echo "[Install Static Lib]"
-       $Q install -m 0755 -d                                           $(DESTDIR)$(PREFIX)/lib
-       $Q install -m 0755 libwiringPi.a                                        $(DESTDIR)$(PREFIX)/lib
-
 .PHONY:        install-deb
 install-deb:   $(DYNAMIC)
        $Q echo "[Install Headers: deb]"