> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 01:09:03 up 1 day 1:24, 2 users, load average: 1.94, 1.94, 1.82
This commit is contained in:
parent
32db339856
commit
570e2d97f2
1 changed files with 5 additions and 7 deletions
|
@ -1,11 +1,9 @@
|
||||||
TEST_SRCS += tests/expr_test.c
|
TEST_SRCS += tests/expr_test.c
|
||||||
|
|
||||||
$(OBJ_DIR)/%: %.c $(OBJS)
|
$(OBJ_DIR)/tests/%.o: tests/%.c
|
||||||
@echo + CC $<
|
@echo + CC $<
|
||||||
@$(CC) $(CFLAGS) -Wl,-e,test_main -o $@ $< $(LDFLAGS) $(CFLGAS)
|
@$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CFLGAS)
|
||||||
@$(CC) $(CFLAGS) -Wl,-e,test_main -o $@ $^ $(LDFLAGS) $(CFLGAS)
|
|
||||||
|
|
||||||
$(OBJ_DIR)/%: %.c $(OBJS)
|
$(OBJ_DIR)/tests/%: $(OBJ_DIR)/test/%.o $(OBJS)
|
||||||
@echo + CC $<
|
@echo + LD $<
|
||||||
@$(CC) $(CFLAGS) -Wl,-e,test_main -o $@ $< $(LDFLAGS) $(CFLGAS)
|
@$(LD) -e test_main -o $@ $^ $(LDFLAGS) $(CFLGAS)
|
||||||
@$(CC) $(CFLAGS) -Wl,-e,test_main -o $@ $^ $(LDFLAGS) $(CFLGAS)
|
|
||||||
|
|
Loading…
Reference in a new issue