I learned my lession
This commit is contained in:
@@ -84,8 +84,8 @@ char *configure_template =
|
||||
char *makefile_template =
|
||||
line ("prefix = /usr/bin")
|
||||
line ()
|
||||
line ("%s_SRCS := $(shell find . -name '%s/*.c')")
|
||||
line ("%s_OBJS := $(patsubst ./%%.c,c-out/obj/%%.o,$(%s_SRCS))")
|
||||
line ("%s_SRCS := $(wildcard %s/*.c)")
|
||||
line ("%s_OBJS := $(patsubst ./%s/%%.c,c-out/obj/%%.o,$(%s_SRCS))")
|
||||
line ()
|
||||
line ("%s := c-out/bin/%s")
|
||||
line ()
|
||||
@@ -103,7 +103,7 @@ char *makefile_template =
|
||||
line ("\tmkdir -p c-out/bin")
|
||||
line ("\tmkdir -p c-out/obj")
|
||||
line ()
|
||||
line ("c-out/obj/%%.o: %%.c")
|
||||
line ("c-out/obj/%%.o: %s/%%.c")
|
||||
line ("\t$(CC) $(CFLAGS) -c $< -o $@")
|
||||
line ()
|
||||
line ("$(%s): $(%s_OBJS)")
|
||||
|
||||
Reference in New Issue
Block a user