-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (56 loc) · 1.82 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
#/*-----------------------------------------------------------------------------+
#File Name: Makefile
#+------------------------------------------------------------------------------+
#
#+------------------------------------------------------------------------------+
# Programming III COP4338
# Author: Daniel Gonzalez P#4926400
# assignment 3: Deck of Cards
# Date: 10/20/2016
#
# program description
# Input: Accept input via the command-line arguments. Validate command-line
# input. Input will be the number of cards/hand and the number of
# hands(players), in that order.
#
# Output: Display of a deck of cards, cards of each hands after dealing
# and a winner hand..
#
#
# +-------------------------------------------------------------------------+
# | I Daniel Gonzalez #4926400 hereby certify that this collective work is |
# | my own and none of it is the work of any other person or entity. |
# +-------------------------------------------------------------------------+
#
#
# how to compile and execute:
# 1.Open the terminal
# Go to the program folder
# Run the following command "make"
#
# 2.Open the terminal
# Go to the program folder
# Run the following command
# "gcc -Wall -w -lm Main.c Game.c Deck.c Card.c Player.c -o poker"
#
# Program execution:
# From the terminal enter “./poker [#Cards][#Players]"
# both arguments are required
#
#+-----------------------------------------------------------------------------*/
CC = gcc
FLAGS = -Wall -w -lm
EXE = poker
OUT = -o
HEADER = Main.h
OBJS = Main.o Game.o Deck.o Card.o Player.o
SOURCE = Main.c Game.c Deck.c Card.c Player.c
$(EXE): $(OBJS)
$(CC) $(FLAGS) $(SOURCE) $(OUT) $(EXE)
Game.o:$(HEADER)
Deck.o:$(HEADER)
Card.o:$(HEADER)
Player.o:$(HEADER)
.PHONY: clean
clean:
rm *.o