Přidat du4/Makefile
This commit is contained in:
parent
6daba8138b
commit
1f2f50e570
25
du4/Makefile
Normal file
25
du4/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
TARGET = train
|
||||
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -std=c11
|
||||
|
||||
SRCS = main.c a_train.c
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
SRC_DIR = .
|
||||
INC_DIR = .
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) $(CFLAGS) -I$(INC_DIR) $(OBJS) -o $(TARGET)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -I$(INC_DIR) -c $< -o $@
|
||||
|
||||
run: $(TARGET)
|
||||
./$(TARGET)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $(TARGET)
|
||||
Loading…
Reference in New Issue
Block a user