~ubuntu-branches/debian/sid/ion/sid

« back to all changes in this revision

Viewing changes to ltp/i86-mingw/Makefile

  • Committer: Package Import Robot
  • Author(s): Leo Iannacone
  • Date: 2014-10-14 16:40:07 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20141014164007-67bp5oth2mfjuqs8
Tags: 3.2.1+dfsg-1
* New upstream release.
* Bump Standards-Version 3.9.6
* debian/copyright:
  - update Upstream-Name
  - update Format
  - add Upstream-Contact
  - add comment to repacking and Files-Excluded field
  - add short license name for upstream license
* Remove repack.* utilities in favor of Files-Excluted
* debian/rules:remove call to REPACK_SH
* debian/watch: update dsfg dversionmangle
* debian/patches:
  - remove fix-manpages-errors.patch: applied upstream
  - refresh patches and renamed adding a number suffix
  - 0002-fix-dtnperf-undefined-symbols.patch:
    add LIBADD to libal_pb_vION, prevents undefined-symbols
  - 0003-ftbfs-with-clang.patch:
    fix FTBFS if clang is used instead of gcc (closes: #754319)
* Update debian/links to binaries without manpage

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
UTILS = ../utils
4
4
DAEMON = ../daemon
5
5
UDP = ../udp
 
6
SDA = ../sda
6
7
TEST = ../test
7
8
 
8
9
OPT = -g -Wall -Dmingw
9
 
CC = gcc $(OPT) -I$(API) -I$(INCL) -I$(ROOT)/include
 
10
CC = gcc $(OPT) -I$(API) -I$(API)/ext -I$(API)/ext/auth -I$(INCL) -I$(ROOT)/include
10
11
LDFLAGS = -fPIC -shared
11
12
LD = gcc $(LDFLAGS)
12
13
 
13
14
PUBINCLS = \
14
 
        $(INCL)/ltp.h
 
15
        $(INCL)/ltp.h \
 
16
        $(INCL)/sda.h
15
17
 
16
18
LTPINCLS = \
17
19
        $(API)/ltpP.h \
18
20
        $(UDP)/udplsa.h
19
21
 
20
 
RUNTIMES = ltpadmin ltpclock ltpmeter udplsi udplso ltpdriver ltpcounter
 
22
RUNTIMES = ltpadmin ltpclock ltpmeter udplsi udplso ltpdriver ltpcounter sdatest
21
23
 
22
24
ALL = check libltp.dll $(RUNTIMES)
23
25
 
65
67
                $(CC) -o ltpcounter ltpcounter.o -L./lib -L$(ROOT)/lib -lltp -lici -lpthread
66
68
                cp ltpcounter ./bin
67
69
 
 
70
sdatest:        sdatest.o libltp.dll
 
71
                $(CC) -o sdatest sdatest.o -L./lib -L$(ROOT)/lib -lltp -lici -lpthread
 
72
                cp sdatest ./bin
 
73
 
68
74
#       -       -       UDP executables -       -       -       -       -
69
75
 
70
76
udplsi:         udplsi.o libltp.dll
77
83
 
78
84
#       -       -       Libraries       -       -       -       -       -
79
85
 
80
 
libltp.dll:     libltpP.o libltp.o libltpnm.o
81
 
                $(LD) -o libltp.dll libltpP.o libltp.o libltpnm.o -L$(ROOT)/lib -lici -lpthread
 
86
libltp.dll:     libltpP.o ltpei.o auth.o libltp.o libltpnm.o libsda.o
 
87
                $(LD) -o libltp.dll libltpP.o ltpei.o auth.o libltp.o libltpnm.o libsda.o -L$(ROOT)/lib -lici -lpthread
82
88
                cp libltp.dll ./lib
83
89
 
84
90
#       -       -       Object modules  -       -       -       -       -
86
92
%.o:            $(API)/%.c
87
93
                $(CC) -c $<
88
94
 
 
95
%.o:            $(API)/ext/auth/%.c
 
96
                $(CC) -c $<
 
97
 
89
98
%.o:            $(UTILS)/%.c
90
99
                $(CC) -c $<
91
100
 
97
106
 
98
107
%.o:            $(UDP)/%.c
99
108
                $(CC) -c $<
 
109
 
 
110
%.o:            $(SDA)/%.c
 
111
                $(CC) -c $<