哥用的是makefile,毫无压力,我的把我的分享给你参考吧, $(CC)前要加tab:
INCLUDE=/ext_card/home/root/include
HW_INCLUDE=/ext_card/home/root/include/hw_android
SW_INCLUDE=/ext_card/home/root/include/sw
MAIN_INCLUDE=/ext_card/home/root/src/rpg/lib
LIB = -lSDL
all:
$(CC )-o rpg main.c rpg_2d.c -I"$(INCLUDE)" -I"$(HW_INCLUDE)" -I"$(MAIN_INCLUDE)" \$(INCLUDE)/fnt.c \$(INCLUDE)/mth.c \$(INCLUDE)/str.c \$(INCLUDE)/gfx.c \$(INCLUDE)/gui.c \$(INCLUDE)/net.c \$(INCLUDE)/img.c \$(INCLUDE)/dbs.c \$(INCLUDE)/wnd.c \$(HW_INCLUDE)/hw.c \$(HW_INCLUDE)/net_hw.c \$(MAIN_INCLUDE)/rpg.c \$(LIB)