Update sk1/Makefile
This commit is contained in:
parent
9f28b757e5
commit
f0122c07a0
11
sk1/Makefile
11
sk1/Makefile
@ -1,11 +1,12 @@
|
|||||||
# Makefile
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wall -Wextra -O2
|
CFLAGS = -Wall -Wextra -O2
|
||||||
OBJ = main.o compressor.o
|
|
||||||
TARGET = compressor
|
TARGET = compressor
|
||||||
|
OBJS = main.o compressor.o
|
||||||
|
|
||||||
$(TARGET): $(OBJ)
|
all: $(TARGET)
|
||||||
$(CC) $(OBJ) -o $(TARGET)
|
|
||||||
|
$(TARGET): $(OBJS)
|
||||||
|
$(CC) $(CFLAGS) -o $@ $(OBJS)
|
||||||
|
|
||||||
main.o: main.c compressor.h
|
main.o: main.c compressor.h
|
||||||
$(CC) $(CFLAGS) -c main.c
|
$(CC) $(CFLAGS) -c main.c
|
||||||
@ -14,4 +15,4 @@ compressor.o: compressor.c compressor.h
|
|||||||
$(CC) $(CFLAGS) -c compressor.c
|
$(CC) $(CFLAGS) -c compressor.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJ) $(TARGET)
|
rm -f $(OBJS) $(TARGET)
|
||||||
|
Loading…
Reference in New Issue
Block a user