Last sync 2016.04.01
[deliverable/titan.core.git] / licensegen / Makefile
CommitLineData
d44e3c4f 1##############################################################################
2# Copyright (c) 2000-2016 Ericsson Telecom AB
970ed795
EL
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
d44e3c4f 7#
8# Contributors:
9# Balasko, Jeno
10# Forstner, Matyas
11# Gecse, Roland
12# Raduly, Csaba
13# Szabo, Janos Zoltan – initial implementation
14#
15##############################################################################
970ed795
EL
16# Makefile for the license generator program
17
18include ../Makefile.cfg
19
20MYSQL_DIR := /mnt/TTCN/Tools/mysql-5.0.41-solaris8-sparc
21TARGET_DIR := /mnt/TTCN/license
22
23CPPFLAGS += -I$(OPENSSL_DIR)/include -I$(MYSQL_DIR)/include
24
25SOLARIS_LIBS := -lsocket -lnsl -lm -lz
26SOLARIS8_LIBS := -lsocket -lnsl -lm -lz
27LINUX_LIBS :=
28FREEBSD_LIBS :=
29WIN32_LIBS :=
30
31SOURCES := license_gen.c
32DEPFILES := $(patsubst %.cc,%.d,$(patsubst %.c,%.d,$(SOURCES)))
33COMMON_OBJECTS := ../common/license.o ../common/memory.o
34OBJECTS := $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES))) $(COMMON_OBJECTS)
35TARGETS := license_gen$(EXESUFFIX)
36
37license_gen$(EXESUFFIX): $(OBJECTS)
38 $(CC) -o $@ $(OBJECTS) $(MYSQL_DIR)/lib/libmysqlclient.a \
39 $(OPENSSL_DIR)/lib/libcrypto.a $($(PLATFORM)_LIBS)
40 chmod g+w $(TARGETS)
41
42install: $(TARGETS)
43 strip $(TARGETS)
44 cp $(TARGETS) $(TARGET_DIR)
45 chmod 710 $(TARGET_DIR)/license_gen$(EXESUFFIX)
46 chmod u+s $(TARGET_DIR)/license_gen$(EXESUFFIX)
47
48include ../Makefile.genrules
This page took 0.036744 seconds and 5 git commands to generate.