| 1234567891011121314151617181920212223 |
- CFLAGS = -Wall -std=c99 -I./inc -I./port
- LIB = -lm
- LINK =
- CC = gcc
- TARGET = application
- DLT645 = $(wildcard ./src/*.c)
- PORT = $(wildcard ./port/*.c)
- SAMPLE = $(wildcard ./sample/*.c)
- SRC = $(DLT645) $(PORT) $(SAMPLE)
- OBJS = $(patsubst %.c,%.o,$(SRC))
- $(TARGET):$(OBJS)
- $(CC) -o $(TARGET) $(OBJS) $(LIB)
- $(OBJS):%.o:%.c
- $(CC) $(CFLAGS) -c $< -o $@
- clean:
- rm -f $(OBJS)
- rm -f $(TARGET)
|