2014-12-01 23:55:08 +01:00
|
|
|
|
##########################################################################
|
|
|
|
|
#
|
|
|
|
|
# Makefile to compile SWAD core
|
|
|
|
|
#
|
|
|
|
|
###############################################################################
|
|
|
|
|
# #
|
|
|
|
|
# SWAD (Shared Workspace At a Distance), #
|
|
|
|
|
# is a web platform developed at the University of Granada (Spain), #
|
|
|
|
|
# and used to support university teaching. #
|
|
|
|
|
# #
|
|
|
|
|
# This file is part of SWAD core. #
|
2018-10-04 22:45:16 +02:00
|
|
|
|
# Copyright (C) 1999-2018 Antonio Ca<43>as Vargas #
|
2014-12-01 23:55:08 +01:00
|
|
|
|
# #
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify #
|
|
|
|
|
# it under the terms of the GNU Affero General Public License as #
|
|
|
|
|
# published by the Free Software Foundation, either version 3 of the #
|
|
|
|
|
# License, or (at your option) any later version. #
|
|
|
|
|
# #
|
|
|
|
|
# This program 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 Affero General Public License for more details. #
|
|
|
|
|
# #
|
|
|
|
|
# You should have received a copy of the GNU Affero General Public License #
|
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
|
|
|
|
# #
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2017-05-11 23:45:46 +02:00
|
|
|
|
OBJS = swad_account.o swad_action.o swad_agenda.o swad_alert.o \
|
|
|
|
|
swad_announcement.o swad_assignment.o swad_attendance.o \
|
2017-06-11 19:02:40 +02:00
|
|
|
|
swad_banner.o swad_box.o swad_button.o \
|
2016-04-03 01:24:20 +02:00
|
|
|
|
swad_calendar.o swad_centre.o swad_chat.o swad_config.o \
|
|
|
|
|
swad_connected.o swad_country.o swad_course.o swad_cryptography.o \
|
|
|
|
|
swad_database.o swad_date.o swad_degree.o swad_degree_type.o \
|
2016-06-16 14:34:17 +02:00
|
|
|
|
swad_department.o swad_duplicate.o \
|
2017-03-30 11:20:06 +02:00
|
|
|
|
swad_enrolment.o swad_exam.o \
|
2015-03-18 01:06:43 +01:00
|
|
|
|
swad_file.o swad_file_browser.o swad_follow.o swad_forum.o \
|
2017-09-07 18:38:18 +02:00
|
|
|
|
swad_game.o swad_global.o swad_group.o \
|
2016-11-14 16:47:46 +01:00
|
|
|
|
swad_help.o swad_hierarchy.o swad_holiday.o \
|
2017-09-07 18:38:18 +02:00
|
|
|
|
swad_icon.o swad_ID.o swad_image.o swad_indicator.o swad_info.o \
|
|
|
|
|
swad_institution.o \
|
2017-05-07 18:06:34 +02:00
|
|
|
|
swad_language.o swad_layout.o swad_link.o swad_logo.o \
|
2015-01-02 01:19:27 +01:00
|
|
|
|
swad_mail.o swad_main.o swad_mark.o swad_menu.o swad_message.o \
|
2016-06-03 13:42:28 +02:00
|
|
|
|
swad_MFU.o \
|
2014-12-01 23:55:08 +01:00
|
|
|
|
swad_network.o swad_nickname.o swad_notice.o swad_notification.o \
|
2015-03-14 17:39:04 +01:00
|
|
|
|
swad_pagination.o swad_parameter.o swad_password.o swad_photo.o \
|
2017-06-10 21:38:10 +02:00
|
|
|
|
swad_place.o swad_plugin.o swad_preference.o swad_privacy.o \
|
2017-09-15 13:19:27 +02:00
|
|
|
|
swad_profile.o swad_project.o \
|
2014-12-01 23:55:08 +01:00
|
|
|
|
swad_QR.o \
|
2017-09-07 18:38:18 +02:00
|
|
|
|
swad_record.o swad_report.o swad_role.o swad_RSS.o \
|
2016-04-03 01:24:20 +02:00
|
|
|
|
swad_scope.o swad_search.o swad_session.o swad_setup.o swad_social.o \
|
|
|
|
|
swad_statistic.o swad_string.o swad_survey.o swad_syllabus.o \
|
2017-09-07 18:38:18 +02:00
|
|
|
|
swad_tab.o swad_table.o swad_test.o swad_test_import.o swad_theme.o \
|
|
|
|
|
swad_timetable.o \
|
2014-12-01 23:55:08 +01:00
|
|
|
|
swad_user.o \
|
|
|
|
|
swad_web_service.o \
|
|
|
|
|
swad_xml.o \
|
|
|
|
|
swad_zip.o
|
|
|
|
|
SOAPOBJS = soap/soapC.o soap/soapServer.o
|
|
|
|
|
SHAOBJS = sha2/sha2.o
|
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
|
|
# LIBS when using MySQL:
|
|
|
|
|
#LIBS = -lmysqlclient -lz -L/usr/lib64/mysql -lm -lgsoap
|
|
|
|
|
|
|
|
|
|
# LIBS when using MariaDB (also valid with MySQL):
|
|
|
|
|
LIBS = -lssl -lcrypto -lpthread -lrt -lmysqlclient -lz -L/usr/lib64/mysql -lm -lgsoap
|
|
|
|
|
|
2018-10-08 14:11:21 +02:00
|
|
|
|
CFLAGS = -Wall -Wextra -mtune=native -O2 -s
|
2014-12-01 23:55:08 +01:00
|
|
|
|
|
|
|
|
|
all: swad_ca swad_de swad_en swad_es swad_fr swad_gn swad_it swad_pl swad_pt
|
|
|
|
|
|
|
|
|
|
swad_ca: $(OBJS) $(SOAPOBJS) $(SHAOBJS)
|
2017-03-23 11:55:27 +01:00
|
|
|
|
$(CC) $(CFLAGS) -c -D L=1 swad_help_URL.c swad_text.c
|
2017-03-02 21:05:09 +01:00
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
chmod a+x $@
|
|
|
|
|
|
|
|
|
|
swad_de: $(OBJS) $(SOAPOBJS)
|
2017-03-02 21:05:09 +01:00
|
|
|
|
$(CC) $(CFLAGS) -c -D L=2 swad_help_URL.c swad_text.c
|
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
chmod a+x $@
|
|
|
|
|
|
|
|
|
|
swad_en: $(OBJS) $(SOAPOBJS)
|
2017-03-02 21:05:09 +01:00
|
|
|
|
$(CC) $(CFLAGS) -c -D L=3 swad_help_URL.c swad_text.c
|
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
chmod a+x $@
|
|
|
|
|
|
|
|
|
|
swad_es: $(OBJS) $(SOAPOBJS)
|
2017-03-02 21:05:09 +01:00
|
|
|
|
$(CC) $(CFLAGS) -c -D L=4 swad_help_URL.c swad_text.c
|
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
chmod a+x $@
|
|
|
|
|
|
|
|
|
|
swad_fr: $(OBJS) $(SOAPOBJS)
|
2017-03-02 21:05:09 +01:00
|
|
|
|
$(CC) $(CFLAGS) -c -D L=5 swad_help_URL.c swad_text.c
|
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
chmod a+x $@
|
|
|
|
|
|
|
|
|
|
swad_gn: $(OBJS) $(SOAPOBJS)
|
2017-03-02 21:05:09 +01:00
|
|
|
|
$(CC) $(CFLAGS) -c -D L=6 swad_help_URL.c swad_text.c
|
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
chmod a+x $@
|
|
|
|
|
|
|
|
|
|
swad_it: $(OBJS) $(SOAPOBJS)
|
2017-03-02 21:05:09 +01:00
|
|
|
|
$(CC) $(CFLAGS) -c -D L=7 swad_help_URL.c swad_text.c
|
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
chmod a+x $@
|
|
|
|
|
|
|
|
|
|
swad_pl: $(OBJS) $(SOAPOBJS)
|
2017-03-02 21:05:09 +01:00
|
|
|
|
$(CC) $(CFLAGS) -c -D L=8 swad_help_URL.c swad_text.c
|
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
chmod a+x $@
|
|
|
|
|
|
|
|
|
|
swad_pt: $(OBJS) $(SOAPOBJS)
|
2017-03-02 21:05:09 +01:00
|
|
|
|
$(CC) $(CFLAGS) -c -D L=9 swad_help_URL.c swad_text.c
|
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
chmod a+x $@
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
|
|
clean:
|
2017-03-15 02:42:31 +01:00
|
|
|
|
rm -f swad swad_ca swad_de swad_en swad_es swad_fr swad_gn swad_it swad_pl swad_pt swad_help_URL.o swad_text.o $(OBJS)
|