> 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 15:19:17 up 15:35, 2 users, load average: 0.35, 0.60, 0.60
This commit is contained in:
parent
146ba011af
commit
86c55d7b06
4 changed files with 3182 additions and 12 deletions
|
@ -40,6 +40,16 @@ $(OBJ_DIR)/%.o: %.cc
|
|||
@$(CXX) $(CFLAGS) $(CXXFLAGS) -c -o $@ $<
|
||||
$(call call_fixdep, $(@:.o=.d), $@)
|
||||
|
||||
$(OBJ_DIR)/%-lex.l: %-exp.y
|
||||
@echo + YACC $<
|
||||
@mkdir -p $(dir $@)
|
||||
@$(YACC) $(YFLAGS) -H $(<:.y=.h) -o $@ $<
|
||||
|
||||
$(OBJ_DIR)/%.c: %-lex.l
|
||||
@echo + LEX $<
|
||||
@mkdir -p $(dir $@)
|
||||
@$(LEX) $(LFLAGS) -o $@ $<
|
||||
|
||||
# Depencies
|
||||
-include $(OBJS:.o=.d)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue