> 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 18:16:58 up 18:32, 2 users, load average: 0.53, 0.44, 0.35
This commit is contained in:
parent
06659f91d0
commit
42fb48b9da
1 changed files with 12 additions and 0 deletions
|
@ -45,11 +45,23 @@ $(OBJ_DIR)/%.tag.c: %.y
|
|||
@mkdir -p $(dir $@)
|
||||
@$(YACC) $(YFLAGS) --header=$(<:.y=.h) -o $@ $<
|
||||
|
||||
$(OBJ_DIR)/%.tag.o: $(OBJ_DIR)/%.tag.c
|
||||
@echo + CC $<
|
||||
@mkdir -p $(dir $@)
|
||||
@$(CC) $(CFLAGS) -c -o $@ $<
|
||||
$(call call_fixdep, $(@:.o=.d), $@)
|
||||
|
||||
$(OBJ_DIR)/%.yy.c: %.l $(OBJ_DIR)/%.tag.c
|
||||
@echo + LEX $<
|
||||
@mkdir -p $(dir $@)
|
||||
@$(LEX) $(LFLAGS) -o $@ $<
|
||||
|
||||
$(OBJ_DIR)/%.yy.o: %(OBJ_DIR)/%.yy.c
|
||||
@echo + CC $<
|
||||
@mkdir -p $(dir $@)
|
||||
@$(CC) $(CFLAGS) -c -o $@ $<
|
||||
$(call call_fixdep, $(@:.o=.d), $@)
|
||||
|
||||
# Depencies
|
||||
-include $(OBJS:.o=.d)
|
||||
|
||||
|
|
Loading…
Reference in a new issue