summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@scu.edu>2023-01-07 15:01:28 -0800
committerLouie Shprung <lshprung@scu.edu>2023-01-07 15:01:28 -0800
commit0139e38d10d7a2e50bc07a7a10a9fffbf1761c78 (patch)
tree9dc207335d86f337e7e8a1a234ed897278a171c6 /src/Makefile.am
parent3c64e633185d7065c1a72673394acef89ff4740e (diff)
Add conditional for build platform
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 193c517..0028381 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,12 @@
AUTOMAKE_OPTIONS = subdir-objects
+if WINDOWS
+PLATFORM=windows
+else
+PLATFORM=unix
+endif
+
bin_PROGRAMS = terminal_media_launcher
-terminal_media_launcher_SOURCES = cache.c draw.c read_cfg.c group.c entry.c unix/cache.c unix/draw.c unix/read_cfg.c
+terminal_media_launcher_SOURCES = cache.c draw.c read_cfg.c group.c entry.c $(PLATFORM)/cache.c $(PLATFORM)/draw.c $(PLATFORM)/read_cfg.c
terminal_media_launcher_LDADD = @CURSES_LIBS@
terminal_media_launcher_CPPFLAGS = @CURSES_CFLAGS@