mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
No longer make extra object files.
This commit is contained in:
parent
21d4b8fe1f
commit
0a15539d7b
6
Makefile
6
Makefile
@ -124,14 +124,10 @@ build/webinit.gen.c: src/webclient/webinit.janet build/xxd
|
|||||||
###################
|
###################
|
||||||
|
|
||||||
TEST_SOURCES=$(wildcard ctest/*.c)
|
TEST_SOURCES=$(wildcard ctest/*.c)
|
||||||
TEST_OBJECTS=$(patsubst ctest/%.c,build/%.o,$(TEST_SOURCES))
|
|
||||||
TEST_PROGRAMS=$(patsubst ctest/%.c,build/%.out,$(TEST_SOURCES))
|
TEST_PROGRAMS=$(patsubst ctest/%.c,build/%.out,$(TEST_SOURCES))
|
||||||
TEST_SCRIPTS=$(wildcard test/suite*.janet)
|
TEST_SCRIPTS=$(wildcard test/suite*.janet)
|
||||||
|
|
||||||
build/%.o: ctest/%.c $(JANET_HEADERS)
|
build/%.out: ctest/%.c $(JANET_CORE_OBJECTS)
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
|
||||||
|
|
||||||
build/%.out: build/%.o $(JANET_CORE_OBJECTS)
|
|
||||||
$(CC) $(CFLAGS) -o $@ $^ $(CLIBS)
|
$(CC) $(CFLAGS) -o $@ $^ $(CLIBS)
|
||||||
|
|
||||||
repl: $(JANET_TARGET)
|
repl: $(JANET_TARGET)
|
||||||
|
Loading…
Reference in New Issue
Block a user