Undo last commit
This commit is contained in:
parent
02702e30f3
commit
ca235104c7
2
.replit
2
.replit
|
@ -1,2 +1,2 @@
|
|||
language = "cpp"
|
||||
run = "make; ./compress; rm compress"
|
||||
run = "g++ src/*.cpp -o out -std=c++11; ./out; rm out"
|
20
Makefile
20
Makefile
|
@ -1,20 +0,0 @@
|
|||
TARGET ?= compress
|
||||
SRC_DIRS ?= ./src
|
||||
|
||||
SRCS := $(shell find $(SRC_DIRS) -name *.cpp -or -name *.c -or -name *.s)
|
||||
OBJS := $(addsuffix .o,$(basename $(SRCS)))
|
||||
DEPS := $(OBJS:.o=.d)
|
||||
|
||||
INC_DIRS := $(shell find $(SRC_DIRS) -type d)
|
||||
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
||||
|
||||
CPPFLAGS ?= $(INC_FLAGS) -MMD -MP -std=c++11
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) $(LDFLAGS) $(OBJS) -o $@ $(LOADLIBES) $(LDLIBS)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) $(TARGET) $(OBJS) $(DEPS)
|
||||
|
||||
-include $(DEPS)
|
|
@ -1,5 +0,0 @@
|
|||
src/huffman.o: src/huffman.cpp src/huffman.h src/common.h
|
||||
|
||||
src/huffman.h:
|
||||
|
||||
src/common.h:
|
BIN
src/huffman.o
BIN
src/huffman.o
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
src/main.o: src/main.cpp src/common.h src/huffman.h
|
||||
|
||||
src/common.h:
|
||||
|
||||
src/huffman.h:
|
BIN
src/main.o
BIN
src/main.o
Binary file not shown.
Loading…
Reference in a new issue