Commit | Line | Data |
---|---|---|
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 | ||
18 | include ../Makefile.cfg | |
19 | ||
20 | MYSQL_DIR := /mnt/TTCN/Tools/mysql-5.0.41-solaris8-sparc | |
21 | TARGET_DIR := /mnt/TTCN/license | |
22 | ||
23 | CPPFLAGS += -I$(OPENSSL_DIR)/include -I$(MYSQL_DIR)/include | |
24 | ||
25 | SOLARIS_LIBS := -lsocket -lnsl -lm -lz | |
26 | SOLARIS8_LIBS := -lsocket -lnsl -lm -lz | |
27 | LINUX_LIBS := | |
28 | FREEBSD_LIBS := | |
29 | WIN32_LIBS := | |
30 | ||
31 | SOURCES := license_gen.c | |
32 | DEPFILES := $(patsubst %.cc,%.d,$(patsubst %.c,%.d,$(SOURCES))) | |
33 | COMMON_OBJECTS := ../common/license.o ../common/memory.o | |
34 | OBJECTS := $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES))) $(COMMON_OBJECTS) | |
35 | TARGETS := license_gen$(EXESUFFIX) | |
36 | ||
37 | license_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 | ||
42 | install: $(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 | ||
48 | include ../Makefile.genrules |