Contains the source code from the course work throughout my undergraduate Computer Engineering degree at Brigham Young University. There is a mixture of Go, Python, C, C++, Java, VHDL, Verilog, Matlab, Bash, Assembly, etc..
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. CXXFLAGS= -Wall -g -std=c++0x -I .
  2. lexor_objs=labs/lab01.o \
  3. lexer/lexi.o \
  4. lexer/token.o
  5. parser_objs=labs/lab02.o \
  6. lexer/lexi.o \
  7. lexer/token.o \
  8. parser/parser.o \
  9. rdbms_objs=labs/lab03.o \
  10. lexer/lexi.o \
  11. lexer/token.o \
  12. parser/parser.o \
  13. lab01=bin/lab01
  14. lab02=bin/lab02
  15. lab03=bin/lab03
  16. all: $(lab01) $(lab02) $(lab03)
  17. $(lab01): $(lexor_objs)
  18. $(CXX) $(CXXFLAGS) $(lexor_objs) -o $@
  19. $(lab02): $(parser_objs)
  20. $(CXX) $(CXXFLAGS) $^ -o $@
  21. $(lab03): $(rdbms_objs)
  22. $(CXX) $(CXXFLAGS) $^ -o $@
  23. labs/lab01.o: labs/lab01.cpp lexer/util.h lexer/lexi.h lexer/token.h
  24. lexer/lexi.o: lexer/lexi.cpp lexer/lexi.h
  25. lexer/token.o: lexer/token.h lexer/token.cpp
  26. labs/lab02.o: labs/lab02.cpp lexer/util.h lexer/lexi.h lexer/token.h \
  27. parser/scheme.h parser/fact.h parser/rule.h parser/query.h\
  28. parser/predicate.h parser/parameter.h parser/parser.o
  29. labs/lab03.o: labs/lab02.cpp lexer/util.h lexer/lexi.h lexer/token.h \
  30. parser/scheme.h parser/fact.h parser/rule.h parser/query.h\
  31. parser/predicate.h parser/parameter.h parser/parser.o rdbms/db.h \
  32. rdbms/relation.h rdbms/schema.h rdbms/Tuple.h
  33. parser/parser.o: parser/parser.h parser/parser.cpp
  34. clean:
  35. @rm -vf **/*.o
  36. @rm -vf $(EXE)
  37. @rm -vf **/*.1
  38. @rm -vf **/*.0
  39. @rm -vf test
  40. @rm -rvf **/*.dSYM
  41. @rm -vf output.txt
  42. @rm -vf bin/*
  43. drun: main
  44. gdb ./main
  45. valgrind: $(EXE)
  46. valgrind --tool=memcheck --leak-check=yes ./$(EXE) input.txt output.txt
  47. pmc: **/*.h **/*.cpp
  48. pmccabe **/*.h **/*.cpp