# # This makefile is normally intended to be invoked by the makefile in # the top level directory. If you want to invoke it directly for some # reason, use commands like # # make MX_ARCH=linux mx_clean # make MX_ARCH=linux mx_depend # make MX_ARCH=linux # make MX_ARCH=linux MX_INSTALL_DIR=/opt/mx mx_install # # # List all of the source code files used to build mxserver. # SERVER_SRCS = ms_main.c ms_mxserver.c ms_socket_select.c # # This variable specifies the name of the directory containing the # 'mxserver' source code. # mx_directory_name = "server" # #-------------------------------------------------------------------------- # # The default makefile target must come before the includes since they # contain makefile targets too. # all: mx_build # #-------------------------------------------------------------------------- # # Definitions specific to a particular architecture are included here. # include ../libMx/Makefile.version include ../libMx/Makehead.$(MX_ARCH) INCLUDES = $(MX_INCLUDES) # #-------------------------------------------------------------------------- # # Makefile targets. # mx_build: $(SERVER_NAME) mx_clean: -$(RM) *.$(OBJ) -$(RM) *.bak -$(RM) *.bin -$(RM) *.bt -$(RM) *.dbg -$(RM) *.exe -$(RM) *.ilk -$(RM) *.manifest -$(RM) *.map -$(RM) *.num -$(RM) *.nxe -$(RM) *.obj -$(RM) *.pdb -$(RM) *.tds -$(RM) *.res -$(RM) *.RES -$(RM) core* -$(RM) $(SERVER_NAME) mx_distclean: mx_clean -$(MAKEDEPEND_CLEAN) mx_depend: $(MAKEDEPEND) mx_install: server_install include Makefile.depend # #-------------------------------------------------------------------------- # ms_main.$(OBJ): ms_main.c $(COMPILE) $(CFLAGS) $(APP_FLAGS) ms_main.c ms_mxserver.$(OBJ): ms_mxserver.c $(COMPILE) $(CFLAGS) $(APP_FLAGS) $(MUSL_INCLUDES) ms_mxserver.c ms_socket_select.$(OBJ): ms_socket_select.c $(COMPILE) $(CFLAGS) $(APP_FLAGS) ms_socket_select.c