Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this is a bad way to transfer files #1

Open
tybill opened this issue Jul 12, 2018 · 0 comments
Open

this is a bad way to transfer files #1

tybill opened this issue Jul 12, 2018 · 0 comments

Comments

@tybill
Copy link

tybill commented Jul 12, 2018

`# Let's declare some variables
CC       = g++
CPPFLAGS = -Wall -g
TOOBJECT = -c
BIN_DIR  = bin
GTEST_LL = -I /usr/include/gtest/ -l gtest -l gtest_main -pthread

# $^ is an auto variable that means "all dependencies",
#   which are test.cpp and $(BIN_DIR)/fib.o in this case
# IMPORTANT: $(GTEST_LL) needs to come *after* the source files
listtest: listtest.cpp llistint.o
	$(CC) $(CPPFLAGS) $^ $(GTEST_LL) -o listtest

scheduling: scheduling.cpp llistint.o queueint.o
	$(CC) $(CPPFLAGS) $^ -o $@

cnfeval: cnfeval.cpp cnf.o
	$(CC) $(CPPFLAGS) $^ -o cnfeval

$llistint.o: llistint.h llistint.cpp
	$(CC) $(CPPFLAGS) -c $^ -o llistint.o

$queueint.o: queueint.h queueint.cpp
	$(CC) $(CPPFLAGS) -c $^ -o $@

$cnf.o: cnf.h cnf.cpp
	$(CC) $(CPPFLAGS) -c $^ -o $@

.PHONY: tests clean

tests: listtest
	-@listtest
	-@echo "--- All Tested!---"

clean:
	-@rm -rf listtest
	-@rm -rf queueint.o
	-@rm -rf llistint.o
	-@rm -rf scheduling
	-@rm -rf cnfeval
	-@rm -rf cnf.o
	-@echo "--- All Clean!---"
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant