diff options
| author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-01-25 12:38:54 +0000 |
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-01-25 12:38:54 +0000 |
| commit | 6446f24580d103a15d80fbcb4503093894e5b1c9 (patch) | |
| tree | 1396c2d3d90204d6127908f584c863e0556f5ba1 /src | |
| parent | e25b1655bc5764bc7a78101c30a15810445fb76f (diff) | |
| download | libpam-freerdp2-6446f24580d103a15d80fbcb4503093894e5b1c9.tar.gz libpam-freerdp2-6446f24580d103a15d80fbcb4503093894e5b1c9.tar.bz2 libpam-freerdp2-6446f24580d103a15d80fbcb4503093894e5b1c9.zip | |
autootools: Auto-discover which FreeRDP version to build against (prefer v3, if available).
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.am | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 7e25fd6..32a8184 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -43,20 +43,38 @@ freerdp_auth_check_SOURCES = \ freerdp-auth-check.c \ $(NULL) +if HAVE_FREERDP3 freerdp_auth_check_CFLAGS = \ -Wall -Werror \ - $(FREERDP_CFLAGS) \ - $(WINPR_CFLAGS) \ + $(FREERDP3_CFLAGS) \ + $(WINPR3_CFLAGS) \ $(COVERAGE_CFLAGS) \ $(NULL) +freerdp_auth_check_LDADD = \ + $(FREERDP3_LIBS) \ + $(WINPR3_LIBS) \ + $(NULL) +freerdp_auth_check_LDFLAGS = \ + $(FREERDP3_LDFLAGS) \ + $(WINPR3_LDFLAGS) \ + $(COVERAGE_LDFLAGS) \ + $(NULL) +else +freerdp_auth_check_CFLAGS = \ + -Wall -Werror \ + $(FREERDP2_CFLAGS) \ + $(WINPR2_CFLAGS) \ + $(COVERAGE_CFLAGS) \ + $(NULL) freerdp_auth_check_LDADD = \ - $(FREERDP_LIBS) \ - $(WINPR_LIBS) \ + $(FREERDP2_LIBS) \ + $(WINPR2_LIBS) \ $(NULL) freerdp_auth_check_LDFLAGS = \ - $(FREERDP_LDFLAGS) \ - $(WINPR_LDFLAGS) \ + $(FREERDP2_LDFLAGS) \ + $(WINPR2_LDFLAGS) \ $(COVERAGE_LDFLAGS) \ $(NULL) +endif
\ No newline at end of file |
