-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (38 loc) · 1.6 KB
/
Makefile
File metadata and controls
50 lines (38 loc) · 1.6 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
47
48
49
50
# Bibleajax program
# Bob Kasper, MVNU Computer Science
# updated January 2020 to use
# c++11 compiler option, current paths on cs.mvnu.edu
# This is a Makefile for the Bible web app demo program.
# Copy this directory to a location within your home directory.
# Change the USER name value below to your own user name.
# Then use "make" to build the server program,
# and deploy it to the live web server directory.
# To test the program, go to http://cs.mvnu.edu/class/csc3004/USER/
# and open the bibleajax.html link.
# TO DO: Must replace "username" by your username
USER= samriffle
# Use GNU C++ compiler with C++11 standard
CC= g++
CFLAGS= -g -std=c++11
all: bibleajax.cgi PutCGI PutHTML
# TO DO: For bibleajax.cgi, add dependencies to include
# compiled classes from Project 1 to be linked into the executable program
bibleajax.cgi: bibleajax.o Ref.o Verse.o Bible.o
$(CC) $(CFLAGS) -o bibleajax.cgi bibleajax.o Ref.o Verse.o Bible.o -lcgicc
# -l option is necessary to link with cgicc library
# main program to handle AJAX/CGI requests for Bible references
bibleajax.o: bibleajax.cpp
$(CC) $(CFLAGS) -c bibleajax.cpp
# TO DO: copy targets to build classes from Project 1:
# Bible.o, Ref.o, Verse.o
PutCGI: bibleajax.cgi
chmod 755 bibleajax.cgi
cp bibleajax.cgi /var/www/html/class/csc3004/$(USER)/cgi-bin
echo "Current contents of your cgi-bin directory: "
ls -l /var/www/html/class/csc3004/$(USER)/cgi-bin/
PutHTML:
cp bibleajax.html /var/www/html/class/csc3004/$(USER)
echo "Current contents of your HTML directory: "
ls -l /var/www/html/class/csc3004/$(USER)
clean:
rm *.o core bibleajax.cgi