guowenxue
2018-10-14 40c74e69eec5152aac6c5420bf0e532e9b7fd0b2
tidy modules folders, put them in c and python folders
1 files added
2 files deleted
4 files renamed
92 ■■■■ changed files
program/modules/c/ds18b20.c patch | view | raw | blame | history
program/modules/c/makefile 70 ●●●●● patch | view | raw | blame | history
program/modules/c/sht20.c patch | view | raw | blame | history
program/modules/ds18b20/makefile 11 ●●●●● patch | view | raw | blame | history
program/modules/python/ds18b20.py patch | view | raw | blame | history
program/modules/python/sht20.py patch | view | raw | blame | history
program/modules/sht20/makefile 11 ●●●●● patch | view | raw | blame | history
program/modules/c/ds18b20.c
program/modules/c/makefile
New file
@@ -0,0 +1,70 @@
#*********************************************************************************
#      Copyright:  (C) 2012 Guo Wenxue<Email:guowenxue@gmail.com QQ:281143292>
#                  All rights reserved.
#
#       Filename:  Makefile
#    Description:  This Makefile used to compile all the C source code file in current
#                  folder to respective excutable binary files.
#
#        Version:  1.0.0(10/08/2011~)
#                  Author:  Guo Wenxue <guowenxue@gmail.com>
#      ChangeLog:  1, Release initial version on "11/11/2011 01:29:33 PM"
#
#********************************************************************************/
PWD=$(shell pwd)
INSTPATH=/usr/bin
CFLAGS+=-I${PWD}
#CFLAGS+=-Wall -Werror
LDFLAGS+=-lwiringPi
LDFLAGS+=-lpthread
VPATH= .
SRCS = $(wildcard ${VPATH}/*.c)
OBJS = $(patsubst %.c,%.o,$(SRCS))
#CC=arm-linux-
export CC=${CROSS_COMPILE}gcc
export CXX=${CROSS_COMPILE}g++
export AR=${CROSS_COMPILE}ar
export AS=${CROSS_COMPILE}as
export RANLIB=${CROSS_COMPILE}ranlib
export STRIP=${CROSS_COMPILE}strip
export CFLAGS
export LDFLAGS
SRCFILES = $(wildcard *.c)
BINARIES=$(SRCFILES:%.c=%)
all: entry binaries
entry:
    @echo " ";
    @echo " =========================================================";
    @echo " **        Compile \"${BINARIES}\" for ${ARCH}         ";
    @echo " =========================================================";
binaries:  ${BINARIES}
    @echo " Compile over"
%:  %.c
    $(CC) $(CFLAGS) -o $@ $<  ${LDFLAGS}
tag:
    @ctags --c-kinds=+defglmnstuvx --langmap=c:.c.h.ho.hem.het.hec.hev.him.hit.hic.hiv -R .
    @cscope -Rbq
install:
    @cp $(BINARIES) ${INSTPATH}
clean:
    @rm -f version.h
    @rm -f *.o $(BINARIES)
    @rm -rf *.gdb *.a *.so *.elf*
distclean: clean
    @rm -f  tags cscope*
.PHONY: clean entry
program/modules/c/sht20.c
program/modules/ds18b20/makefile
File was deleted
program/modules/python/ds18b20.py
program/modules/python/sht20.py
program/modules/sht20/makefile
File was deleted