mirror of https://github.com/wolfSSL/wolfssh.git
27 lines
385 B
Makefile
27 lines
385 B
Makefile
# Compiler and flags
|
|
CC = gcc
|
|
CFLAGS = -g -Wall -O2 -fPIC -Isource
|
|
LDFLAGS = -shared
|
|
|
|
# Source files
|
|
SRCS = source/ff.c source/ffunicode.c fatfs_example.c
|
|
|
|
# Object files
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
# Target library
|
|
TARGET = libfatfs.so
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(TARGET)
|
|
|
|
.PHONY: all clean
|