-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.UBUNTU
43 lines (34 loc) · 1.56 KB
/
Makefile.UBUNTU
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
#*************************************************************************\
# Copyright (C) Ed Cole 2016. *
# colege@gmail.com *
# *
# This program is free software. You may use, modify, and redistribute it *
# under the terms of the GNU General Public License as published by the *
# Free Software Foundation, either version 3 or (at your option) any *
# later version. This program is distributed without any warranty. See *
# the file COPYING.gpl-v3 for details. *
# *
#*************************************************************************/
TARGET = sonctl
INSTALL_DIR = /usr/local/bin/
LDFLAGS = -L/home/ecole/src/noson-app/build/backend/lib/noson/noson \
-L/usr/local/lib
LDLIBS = -lnoson -lz -lssl -lcrypto -lpthread
CC = g++
CFLAGS = -std=c++11
IFLAGS = -I/home/ecole/src/noson-app/build/backend/lib/noson/noson/include \
-I/home/ecole/src/noson-app/backend/lib/noson/noson/src/private
.PHONY: default all clean install
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.cpp, %.o, $(wildcard *.cpp))
HEADERS = $(wildcard *.h)
%.o: %.cpp $(HEADERS)
$(CC) -static $(CFLAGS) $(IFLAGS) -c $< -o $@ $(LDFLAGS) $(LDLIBS)
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): Makefile $(OBJECTS) $(HEADERS)
$(CC) $(CFLAGS) $(IFLAGS) $(OBJECTS) -o $(TARGET) $(LDFLAGS) $(LDLIBS)
clean:
-rm -f *.o
-rm -f $(TARGET)
install: