Gordons Projects

--> Projects Top-Level GIT

Updating for various stuff and bugs. CM3+ and PiA3+
[wiringPi] / wiringPi / Makefile
index 13d006f..d8639e8 100644 (file)
@@ -36,12 +36,12 @@ 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
+LIBS    = -lm -lpthread -lrt -lcrypt
 
 ###############################################################################
 
@@ -57,8 +57,8 @@ SRC   =       wiringPi.c                                              \
                mcp3002.c mcp3004.c mcp4802.c mcp3422.c                 \
                max31855.c max5322.c ads1115.c                          \
                sn3218.c                                                \
-               bmp180.c htu21d.c ds18b20.c                             \
-               drcSerial.c                                             \
+               bmp180.c htu21d.c ds18b20.c rht03.c                     \
+               drcSerial.c drcNet.c                                    \
                pseudoPins.c                                            \
                wpiExtensions.c
 
@@ -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]"