This repository was archived by the owner on Oct 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (40 loc) · 1.21 KB
/
Makefile
File metadata and controls
46 lines (40 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f
#
# Filename: Makefile
# Date: 23 April 2019
# Author: Noah Monaghan
# Email: noah.monaghan@utdallas.edu
# Version: 1.1
# Copyright 2019, All Rights Reserved
#
# Description
#
# Originally derived from an example given
# courtesy of Dr. Stephen Perkins, this
# simplified version has been modified to
# make program4 using implicit rules.
CXX = g++
CPPFLAGS = -I /home/011/n/ns/nsm170001/include
CXXFLAGS = -Wall -Wextra -Werror -std=c++11
LDFLAGS = -L /home/011/n/ns/nsm170001/libs -static
LDLIBS = -l:librudeconfig.a
PROJECTNAME = assignment_4
EXEC = cs3376dirmond
OBJS = parseCommandLine.o parseConfigFile.o program5.o processControl.o inotifyFunctions.o signalHandling.o
.PHONY: all clean
all: $(EXEC)
clean:
rm -f $(OBJS) *~ $(EXEC) *.log
$(EXEC): $(OBJS)
$(CXX) -o $(EXEC) $(OBJS) $(LDFLAGS) $(LDLIBS)
backup: clean
@mkdir -p ~/backups; chmod 700 ~/backups
@$(eval CURDIRNAME := $(shell basename `pwd`))
@$(eval MKBKUPNAME := ~/backups/$(PROJECTNAME)-$(shell date +'%Y.%m.%d-%H:%M:%S').tar.gz)
@echo
@echo Writing Backup file to: $(MKBKUPNAME)
@echo
@-tar zcfv $(MKBKUPNAME) ../$(CURDIRNAME)
@chmod 600 $(MKBKUPNAME)
@echo
@echo Done!