added mingw batch file
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4729 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+3
-2
@@ -80,6 +80,7 @@ CLIENT_OBJS= \
|
||||
bot/ac_bot_ai.o
|
||||
ifneq (,$(findstring MINGW,$(PLATFORM)))
|
||||
CLIENT_OBJS+= ../vcpp/SDL_win32_main.o
|
||||
CLIENT_OBJS:= $(subst /,\\,$(CLIENT_OBJS))
|
||||
endif
|
||||
CLIENT_PCH= cube.h.gch
|
||||
|
||||
@@ -119,7 +120,7 @@ clean-enet: ../enet/Makefile
|
||||
$(MAKE) -C ../enet/ clean
|
||||
|
||||
clean:
|
||||
-$(RM) -f $(CLIENT_PCH) $(CLIENT_OBJS) $(SERVER_OBJS) ac_client ac_server
|
||||
-$(RM) $(CLIENT_PCH) $(CLIENT_OBJS) $(SERVER_OBJS) ac_client ac_server
|
||||
# -$(MAKE) -C ../enet/ clean
|
||||
|
||||
%.h.gch: %.h
|
||||
@@ -134,7 +135,7 @@ $(CLIENT_OBJS): $(CLIENT_PCH)
|
||||
$(SERVER_OBJS): CXXFLAGS += $(SERVER_INCLUDES)
|
||||
|
||||
ifneq (,$(findstring MINGW,$(PLATFORM)))
|
||||
../vcpp/%.o:
|
||||
..\\vcpp\\%.o:
|
||||
$(CXX) $(CXXFLAGS) -c -o $@ $(subst .o,.c,$@)
|
||||
|
||||
client: $(CLIENT_OBJS)
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
mingw32-make PLATFORM=MINGW MV=rename RM=del %*
|
||||
PAUSE
|
||||
Reference in New Issue
Block a user