Codebase list cyrus-sasl2 / f5a717b
Add default Debian hardening to sample server and client Ondřej Surý 7 years ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
00 #!/usr/bin/make -f
1
2 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
3 DPKG_EXPORT_BUILDFLAGS = 1
4 include /usr/share/dpkg/default.mk
15
26 INCDIR1=$(T)/../include
37 INCDIR2=$(T)/include
610 all: sample-server sample-client
711
812 sample-server: sample-server.c
9 gcc -g -o sample-server sample-server.c -I. -I$(T) -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2
13 gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -g -o sample-server sample-server.c -I. -I$(T) -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2
1014
1115 sample-client: sample-client.c
12 gcc -g -o sample-client sample-client.c -I. -I$(T) -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2
16 gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -g -o sample-client sample-client.c -I. -I$(T) -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2