> 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 02:55:41 up 1 day 3:11, 2 users, load average: 0.95, 0.77, 0.65
This commit is contained in:
parent
70ec0a166a
commit
b97e2bf469
4 changed files with 60 additions and 43 deletions
|
@ -1,5 +1,7 @@
|
|||
TEST_SRCS += tests/expr_test.c
|
||||
|
||||
$(OBJ_DIR)/%: %.c $(OBJS)
|
||||
$(OBJ_DIR)/%: %.c $(TEST_OBJS) app
|
||||
@echo + CC $<
|
||||
@$(CC) $(CFLAGS) -Wl,-e,test_main -o $@ $^ $(LIBS) $(LDFLAGS) $(CFLGAS)
|
||||
@$(CC) $(CFLAGS) -o $@.o -c $<
|
||||
@echo + LD $@
|
||||
@$(LD) $(LIBS) $(LDFLAGS) -o $@ $(TEST_OBJS) $@.o
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue