2026-01-27T15:19:25
This commit is contained in:
22
makefile
Normal file
22
makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
#Makefile
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-g -fanalyzer
|
||||
# CFLAGS= -fanalyzer
|
||||
# LIBS=-lsodium -larchive
|
||||
|
||||
SRC_FILES=main.c integrate.c
|
||||
OBJ_FILES=$(SRC_FILES:.c=.o)
|
||||
|
||||
TARGET=main
|
||||
|
||||
$(TARGET): $(OBJ_FILES)
|
||||
$(CC) $(CFLAGS) $(OBJ_FILES) $(LIBS) -o $(TARGET)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(OBJ_FILES)
|
||||
# rm -f $(OBJ_FILES) $(TARGET)
|
||||
Reference in New Issue
Block a user