Update sk1/Makefile
This commit is contained in:
parent
3cd1c0107f
commit
ad3be0b3af
21
sk1/Makefile
21
sk1/Makefile
@ -0,0 +1,21 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -std=c11
|
||||
|
||||
SRC = main.c compressor.c
|
||||
HEADERS = compressor.h
|
||||
OBJ = $(SRC:.c=.o)
|
||||
|
||||
TARGET = compressor
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
|
||||
%.o: %.c $(HEADERS)
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJ) $(TARGET)
|
||||
|
||||
.PHONY: all clean
|
Loading…
Reference in New Issue
Block a user