Sync with 5.4.0
[deliverable/titan.core.git] / license / Makefile
1 ###############################################################################
2 # Copyright (c) 2000-2015 Ericsson Telecom AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Eclipse Public License v1.0
5 # which accompanies this distribution, and is available at
6 # http://www.eclipse.org/legal/epl-v10.html
7 ###############################################################################
8 # Makefile for the license generator program
9
10 include ../Makefile.cfg
11
12 MYSQL_DIR := /mnt/TTCN/Tools/mysql-5.0.41-solaris8-sparc
13 TARGET_DIR := /mnt/TTCN/license
14
15 CPPFLAGS += -I$(OPENSSL_DIR)/include -I$(MYSQL_DIR)/include
16
17 SOLARIS_LIBS := -lsocket -lnsl -lm -lz
18 SOLARIS8_LIBS := -lsocket -lnsl -lm -lz
19 LINUX_LIBS :=
20 FREEBSD_LIBS :=
21 WIN32_LIBS :=
22
23 SOURCES := license_gen.c
24 DEPFILES := $(patsubst %.cc,%.d,$(patsubst %.c,%.d,$(SOURCES)))
25 COMMON_OBJECTS := ../common/license.o ../common/memory.o
26 OBJECTS := $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES))) $(COMMON_OBJECTS)
27 TARGETS := license_gen$(EXESUFFIX)
28
29 license_gen$(EXESUFFIX): $(OBJECTS)
30 $(CC) -o $@ $(OBJECTS) $(MYSQL_DIR)/lib/libmysqlclient.a \
31 $(OPENSSL_DIR)/lib/libcrypto.a $($(PLATFORM)_LIBS)
32 chmod g+w $(TARGETS)
33
34 install: $(TARGETS)
35 strip $(TARGETS)
36 cp $(TARGETS) $(TARGET_DIR)
37 chmod 710 $(TARGET_DIR)/license_gen$(EXESUFFIX)
38 chmod u+s $(TARGET_DIR)/license_gen$(EXESUFFIX)
39
40 include ../Makefile.genrules
This page took 0.037703 seconds and 5 git commands to generate.