File: Makefile

package info (click to toggle)
libb64 1.2-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 228 kB
  • ctags: 135
  • sloc: ansic: 303; makefile: 128; sh: 81; cpp: 65
file content (56 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (2)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
BINARIES = base64

# Build flags (uncomment one)
#############################
# Release build flags
CFLAGS ?= -O3
#############################
# Debug build flags
#CFLAGS += -g
#############################

# select a buffersize
# a larger size should be faster, but takes more runtime memory
#BUFFERSIZE = 4096
#BUFFERSIZE = 65536
BUFFERSIZE = 16777216

SOURCES = base64.cc

TARGETS = $(BINARIES)

LINK.o = g++

CFLAGS += -Werror -pedantic
CFLAGS += -DBUFFERSIZE=$(BUFFERSIZE)
CFLAGS += -I../include

CXXFLAGS += $(CFLAGS)

vpath %.h ../include/b64
vpath %.a ../src

.PHONY : clean

all: $(TARGETS) #strip

base64: -lb64

strip:
	strip $(BINARIES) *.exe

clean: clean_VisualStudioProject
	rm -f *.exe* *.o $(TARGETS) *.bak *~
clean_VisualStudioProject:
	$(MAKE) -C VisualStudioProject clean

distclean: clean distclean_VisualStudioProject
	rm -f depend
distclean_VisualStudioProject: clean_VisualStudioProject
	$(MAKE) -C VisualStudioProject distclean

depend: $(SOURCES)
	makedepend -f- $(CFLAGS) $(SOURCES) 2> /dev/null 1> depend

-include depend