Check-in [a487f5ba86]
Overview
Comment:Shaped up Makefile a bit
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a487f5ba86f58c0700d69266182c02eae17f856533e7d4134775bafff70acfcb
User & Date: rkeene on 2018-06-30 04:17:57
Other Links: manifest | tags
Context
2018-06-30
13:13
More work on an internal signing function check-in: 8e2b1497b3 user: rkeene tags: trunk
04:17
Shaped up Makefile a bit check-in: a487f5ba86 user: rkeene tags: trunk
04:17
Fixed a few configure issues check-in: e9733e0ecf user: rkeene tags: trunk
Changes

Modified Makefile.in from [97fb07e20e] to [2ff36901f0].




1
2

3
4
5
6

7







8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

23
24
25



26



CFLAGS = -Wall
LIBS = -ltcl8.6

export CFLAGS

all: nano.so


nano.so: tweetnacl/tweetnacl.o blake2b/blake2b.o nano.c Makefile







	$(CC) $(CPPFLAGS) $(CFLAGS) -shared -o nano.so nano.c tweetnacl/tweetnacl.o blake2b/blake2b.o $(LDFLAGS) $(LIBS)

tweetnacl/tweetnacl.o:
	$(MAKE) -C tweetnacl tweetnacl.o

blake2b/blake2b.o:
	$(MAKE) -C blake2b blake2b.o

clean:
	rm -f nano.so
	$(MAKE) -C tweetnacl clean
	$(MAKE) -C blake2b clean

distclean:
	rm -f nano.so

	$(MAKE) -C tweetnacl distclean
	$(MAKE) -C blake2b distclean




.PHONY: all clean distclean
>
>
>
|
|
>
|

|

>
|
>
>
>
>
>
>
>
|








|




|
>



>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
CC            := @CC@
CFLAGS        := @CFLAGS@ @SHOBJFLAGS@
CPPFLAGS      := @CPPFLAGS@ @SHOBJCPPFLAGS@
LDFLAGS       := @LDFLAGS@
LIBS          := @LIBS@
SHOBJLDFLAGS  := @SHOBJLDFLAGS@
export CC CFLAGS CPPFLAGS

all: @EXTENSION_TARGET@

ifeq (@TCLEXT_BUILD@,shared)
@EXTENSION_TARGET@: tweetnacl/tweetnacl.o blake2b/blake2b.o nano.o Makefile
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o @EXTENSION_TARGET@ nano.o tweetnacl/tweetnacl.o blake2b/blake2b.o $(LIBS)
else
@EXTENSION_TARGET@: tweetnacl/tweetnacl.o blake2b/blake2b.o nano.o Makefile
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o @EXTENSION_TARGET@ nano.o tweetnacl/tweetnacl.o blake2b/blake2b.o $(LIBS)
endif

nano.o: nano.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -o nano.o -c nano.c

tweetnacl/tweetnacl.o:
	$(MAKE) -C tweetnacl tweetnacl.o

blake2b/blake2b.o:
	$(MAKE) -C blake2b blake2b.o

clean:
	rm -f @EXTENSION_TARGET@ nano.o
	$(MAKE) -C tweetnacl clean
	$(MAKE) -C blake2b clean

distclean:
	rm -f @EXTENSION_TARGET@ nano.o
	rm -f Makefile pkgIndex.tcl config.log config.status
	$(MAKE) -C tweetnacl distclean
	$(MAKE) -C blake2b distclean

mrproper: distclean
	rm -f configure aclocal.m4 config.guess config.sub install-sh

.PHONY: all clean distclean mrproper