udpt/Makefile

44 lines
1.2 KiB
Makefile
Raw Normal View History

#
2013-03-08 14:04:49 +00:00
# Copyright © 2012,2013 Naim A.
#
# This file is part of UDPT.
#
# UDPT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# UDPT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with UDPT. If not, see <http://www.gnu.org/licenses/>.
#
2013-03-08 14:04:49 +00:00
objects = main.o udpTracker.o database.o driver_sqlite.o \
2013-08-11 10:23:27 +01:00
settings.o tools.o httpserver.o webapp.o \
logging.o
2013-03-08 14:04:49 +00:00
target = udpt
2013-03-08 14:04:49 +00:00
%.o: src/%.c
$(CC) -c -o $@ $< $(CFLAGS)
%.o: src/%.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS)
%.o: src/db/%.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS)
2013-03-22 12:21:00 +00:00
%.o: src/http/%.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS)
2013-03-08 14:04:49 +00:00
all: $(target)
2013-03-08 14:04:49 +00:00
$(target): $(objects)
@echo Linking...
2015-11-28 23:37:38 +00:00
$(CXX) -O3 -o $(target) $(objects) $(LDFLAGS) -lsqlite3 -lpthread
2013-03-08 14:04:49 +00:00
@echo Done.
clean:
2013-03-08 14:04:49 +00:00
@echo Cleaning Up...
$(RM) $(objects) $(target)
@echo Done.