Changes
6 changed files (+31/-1)
-
-
@@ -1,2 +1,2 @@language = "cpp" run = "g++ src/*.cpp -o out -std=c++11; ./out; rm out" run = "make; ./compress; rm compress"
-
-
Makefile (new)
-
@@ -0,0 +1,20 @@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)
-
-
src/huffman.d (new)
-
@@ -0,0 +1,5 @@src/huffman.o: src/huffman.cpp src/huffman.h src/common.h src/huffman.h: src/common.h:
-
-
src/huffman.o (new)
-
src/main.d (new)
-
@@ -0,0 +1,5 @@src/main.o: src/main.cpp src/common.h src/huffman.h src/common.h: src/huffman.h:
-
-
src/main.o (new)