rename module into modules

This commit is contained in:
Siegfried Kienzle
2017-06-07 08:24:13 +00:00
parent b1cad51075
commit 596bcfad22
10 changed files with 504 additions and 0 deletions

29
project/modules/Makefile Executable file
View File

@@ -0,0 +1,29 @@
# Makefile
CC=gcc
CFLAGS = -W -Wall -pedantic -g -std=gnu99 -c
LDFLAGS = -static
RM = rm -f
TARGET = motor
OBJECTS = gpio.o
HEADERS = $(OBJECTS:.o=.h)
SOURCES = $(TARGET).c $(OBJECTS:.o=.c)
%.o: %.c
$(CC) $(CFLAGS) $< -o $@
.PHONY: all clean
all: $(TARGET)
clean:
$(RM) $(TARGET) $(TARGET).o $(OBJECTS) depend
depend: $(SOURCES) $(HEADERS)
$(CC) $(CPPFLAGS) -MM $(SOURCES) > $@
$(TARGET): $(TARGET).o $(OBJECTS)
$(CC) $(LDFLAGS) $^ -o $@
$(RM) depend $(TARGET).o $(OBJECTS)
include depend