-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
18 lines (17 loc) · 720 Bytes
/
makefile
File metadata and controls
18 lines (17 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CPPFLAGS=-std=c++0x #-Wunused-comparison -lcurl
DATE_VARIABLE=$(shell date +'"%Y-%m-%dT%H:%M:%S"')
USER_NAME="$(shell whoami)"
2048: main.o game.o getpage.o
g++ $(CPPFLAGS) game.o main.o getpage.o -o 2048 -lcurl
main.o: main.cpp standard.h
g++ $(CPPFLAGS) -DDATE_VARIABLE='$(DATE_VARIABLE)' -DSTANDARD_NAME='$(USER_NAME)' -c main.cpp
game.o: game.cpp game.h
g++ $(CPPFLAGS) -c game.cpp
getpage.o: getpage.h getpage.cpp
g++ $(CPPFLAGS) -c getpage.cpp
main_online.o: main.cpp standard.h
g++ $(CPPFLAGS) -DONLINE_ENABLED -DDATE_VARIABLE='$(DATE_VARIABLE)' -c main.cpp -o main_online.o
online: main_online.o game.o getpage.o
g++ $(CPPFLAGS) main_online.o game.o getpage.o -o 2048 -lcurl
clean:
rm *.o *.gch 2048