summaryrefslogtreecommitdiff
path: root/make.c
diff options
context:
space:
mode:
Diffstat (limited to 'make.c')
-rw-r--r--make.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/make.c b/make.c
index 7983979..429ae25 100644
--- a/make.c
+++ b/make.c
@@ -40,7 +40,7 @@ static void addfile(FILE *makefile, const char *src, const char *target)
free(obj);
}
-void make_makefile(const char *makepath, char **sources, const char *target)
+void make_makefile(const char *makepath, struct majefile **sources, const char *target)
{
FILE *makefile = fopen(makepath, "w");
if (makefile == NULL) {
@@ -49,8 +49,8 @@ void make_makefile(const char *makepath, char **sources, const char *target)
}
make_header(makefile, target);
- for (char **src = sources; *src != NULL; src++) {
- addfile(makefile, *src, target);
+ for (struct majefile **src = sources; *src != NULL; src++) {
+ addfile(makefile, (*src)->path, target);
}
fprintf(makefile, "%s:\n", target);