-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
96 lines (76 loc) · 2.19 KB
/
Makefile
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
###############################################################################
#
# File: Makefile
# RCS: $Id: Makefile,v 1.2 2005/10/14 03:52:59 sbirrer Exp $
# Description: Guess
# Author: Fabian E. Bustamante
# Northwestern Systems Research Group
# Department of Computer Science
# Northwestern University
# Created: Fri Sep 12, 2003 at 15:56:30
# Modified: Wed Sep 24, 2003 at 18:31:43 [email protected]
# Language: Makefile
# Package: N/A
# Status: Experimental (Do Not Distribute)
#
# (C) Copyright 2003, Northwestern University, all rights reserved.
#
###############################################################################
# handin info
TEAM = "wml431+whw437"
VERSION = 10032014
PROJ = tsh
CC = gcc
MV = mv
CP = cp
RM = rm
MKDIR = mkdir
TAR = tar cvf
COMPRESS = gzip
CFLAGS = -g -Wall -O2 -D HAVE_CONFIG_H
DELIVERY = Makefile *.h *.c tsh.1 test_type
PROGS = tsh
SRCS = interpreter.c io.c runtime.c tsh.c
OBJS = ${SRCS:.c=.o}
TESTING_SRCS = myspin.c mysplit.c mystop.c
TESTING_OBJS = ${TESTING_SRCS:.c=.o}
TESTING_PROGS = myspin mysplit mystop
VM_NAME = "Ubuntu_1404"
VM_PORT = "3022"
SHELL_ARCH = "32"
all: ${PROGS}
test-reg: handin
HANDIN=`pwd`/${TEAM}-${VERSION}-${PROJ}.tar.gz;\
cd testsuite;\
bash ./run_testcase.sh $${HANDIN} ${SHELL_ARCH};
test-reg-pipe: handin
HANDIN=`pwd`/${TEAM}-${VERSION}-${PROJ}.tar.gz;\
cd testsuite;\
bash ./run_testcase_pipe.sh $${HANDIN} ${SHELL_ARCH};
start-vm:
VBoxManage startvm ${VM_NAME} --type headless
kill-vm:
VBoxManage controlvm ${VM_NAME} poweroff
test-vm:
scp -r -i id_aqualab -P 3022 * aqualab@localhost:~/.aqualab/project1/.
ssh -i id_aqualab -p 3022 aqualab@localhost 'bash -s' < vm_test.sh
handin: cleanAll testing-tools
${TAR} ${TEAM}-${VERSION}-${PROJ}.tar ${DELIVERY}
${COMPRESS} ${TEAM}-${VERSION}-${PROJ}.tar
.o:
${CC} *.c
tsh: ${OBJS}
${CC} -o $@ ${OBJS}
clean:
${RM} -f *.o *~
cleanAll: clean
${RM} -f ${PROGS} ${TEAM}-${VERSION}-${PROJ}.tar.gz
cd testsuite;\
${RM} ${TESTING_PROGS}
testing-tools:
cd testsuite;\
${CC} -o myspin myspin.c
cd testsuite;\
${CC} -o mysplit mysplit.c
cd testsuite;\
${CC} -o mystop mystop.c