Files
2026-09-22 09:38:26 +08:00

22 lines
306 B
Makefile
Executable File

CFLAGS = -Wall -g -O
TARGET = costmem
LIBPATH =
LIBS = -lpthread
OBJS = costmem.o
SRCS = costmem.c
all:$(OBJS)
$(CC) -o $(TARGET) $(OBJS) $(LIBPATH) $(LIBS)
$(OBJS):$(SRCS)
$(CC) $(CFLAGS) $(INCLUDE_DIRS) -c $^
install:
cp $(TARGET) $(INSTALL_MOD_PATH)/usr/bin
clean:
rm -f *.o
rm -f $(TARGET)