Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / ColonetClient / Makefile @ 13

History | View | Annotate | Download (562 Bytes)

1
CC = g++
2
LD = g++
3
FLAGS = -Wall -Wshadow -Wextra
4
CONNECTION_FILES = Server.cpp
5
CONNECTION_OBJECTS = $(CONNECTION_FILES:.cpp=.o)
6
CLIENT_FILES = Client.cpp
7
CLIENT_OBJECTS = $(CLIENT_FILES:.cpp=.o)
8
COMMANDS_FILES = Commands.cpp Buzzer.cpp Lcd.cpp
9
COMMANDS_OBJECTS = $(COMMANDS_FILES:.cpp=.o)
10

    
11
all: client
12

    
13

    
14
connection: $(CONNECTION_FILES)
15
	$(CC) $(FLAGS) -c $(CONNECTION_FILES)
16

    
17
commands: 
18
	$(CC) $(FLAGS) -c $(COMMANDS_FILES)
19

    
20
client: connection commands $(CLIENT_FILES)
21
	$(LD) -o $@ $(CONNECTION_OBJECTS) $(COMMANDS_OBJECTS) $(CLIENT_FILES) 
22

    
23

    
24
clean:
25
	rm -rf *.o