aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-15 15:38:57 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-15 15:38:57 +0100
commit09ec144a99f1234a37d04854bdfb81485540be97 (patch)
treece3050a062a76dd12980b08ef36eb7ac35b7e6f8
parentfed19b9942575e7c0360a0d77a3c544afdbaeb6c (diff)
downloadEpisodeBrowser-09ec144a99f1234a37d04854bdfb81485540be97.tar.gz
Put C code and Prolog code in separate directories.
-rw-r--r--Makefile12
-rw-r--r--c/episode_browser.manifest (renamed from episode_browser.manifest)0
-rw-r--r--c/resource.h (renamed from resource.h)0
-rw-r--r--c/resource.rc (renamed from resource.rc)0
-rw-r--r--c/win.c (renamed from win.c)0
-rw-r--r--mk.bat4
-rw-r--r--pl/atom_dcg.pl (renamed from atom_dcg.pl)0
-rw-r--r--pl/episode_data.pl (renamed from episode_data.pl)0
-rw-r--r--pl/local_episodes.pl (renamed from local_episodes.pl)0
-rw-r--r--pl/track_episodes.pl (renamed from track_episodes.pl)0
10 files changed, 6 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 21d5584..a8b8276 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
-INPUTS = $(PROJECT_ROOT)win.c
+INPUTS = $(PROJECT_ROOT)c/win.c
INPUTS += resource.obj
-INPUTS += $(PROJECT_ROOT)track_episodes.pl
-INPUTS += $(PROJECT_ROOT)local_episodes.pl
-INPUTS += $(PROJECT_ROOT)episode_data.pl
+INPUTS += $(PROJECT_ROOT)pl/track_episodes.pl
+INPUTS += $(PROJECT_ROOT)pl/local_episodes.pl
+INPUTS += $(PROJECT_ROOT)pl/episode_data.pl
CFLAGS += -DUNICODE -D_UNICODE
LDFLAGS += -lcomctl32 -lgdi32 -luxtheme
@@ -28,8 +28,8 @@ episode_browser.exe: $(INPUTS) $(PROJECT_ROOT)Makefile
swipl-ld -v $(CFLAGS) $(LDFLAGS) -goal true -o $@ $(INPUTS)
$(EXTRA_CMDS)
-resource.obj: $(PROJECT_ROOT)resource.h $(PROJECT_ROOT)resource.rc
- windres -i $(PROJECT_ROOT)resource.rc -o resource.obj
+resource.obj: $(PROJECT_ROOT)c/resource.h $(PROJECT_ROOT)c/resource.rc
+ windres -i $(PROJECT_ROOT)c/resource.rc -o resource.obj
#%.o: $(PROJECT_ROOT)%.c
# $(CC) -c $(CFLAGS) -o $@ $<
diff --git a/episode_browser.manifest b/c/episode_browser.manifest
index 978f471..978f471 100644
--- a/episode_browser.manifest
+++ b/c/episode_browser.manifest
diff --git a/resource.h b/c/resource.h
index 8167760..8167760 100644
--- a/resource.h
+++ b/c/resource.h
diff --git a/resource.rc b/c/resource.rc
index 36fa014..36fa014 100644
--- a/resource.rc
+++ b/c/resource.rc
diff --git a/win.c b/c/win.c
index 6f82645..6f82645 100644
--- a/win.c
+++ b/c/win.c
diff --git a/mk.bat b/mk.bat
deleted file mode 100644
index a737559..0000000
--- a/mk.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@REM -ld ld -ld-options,--subsystem,windows ^
-swipl-ld -v -g ^
--goal true -o build/default/episode_browser win.c ^
-track_episodes.pl local_episodes.pl episode_data.pl \ No newline at end of file
diff --git a/atom_dcg.pl b/pl/atom_dcg.pl
index 74689d5..74689d5 100644
--- a/atom_dcg.pl
+++ b/pl/atom_dcg.pl
diff --git a/episode_data.pl b/pl/episode_data.pl
index 49dddd0..49dddd0 100644
--- a/episode_data.pl
+++ b/pl/episode_data.pl
diff --git a/local_episodes.pl b/pl/local_episodes.pl
index 283ccb7..283ccb7 100644
--- a/local_episodes.pl
+++ b/pl/local_episodes.pl
diff --git a/track_episodes.pl b/pl/track_episodes.pl
index ec1785b..ec1785b 100644
--- a/track_episodes.pl
+++ b/pl/track_episodes.pl