O_DIR := ../obj
EXEC := mrmud
C_FLAGS := -O2 -Wall -Wextra -Werror
L_FLAGS := -lz -lpthread
FILES := $(patsubst %.cpp,%,$(wildcard *.cpp))
.SUFFIXES:
$(EXEC): $(FILES:%=$(O_DIR)/%.o)
@rm -f $(EXEC)
@echo "Linking MUD …"
@g++ -o $(EXEC) $(FILES:%=$(O_DIR)/%.o) $(C_FLAGS) $(L_FLAGS)
@chmod 755 $(EXEC)
-include $(FILES:%=$(O_DIR)/%.d)
%.o $(O_DIR)/%.o : %.cpp
@echo "Compiling $*.cpp …"
@mkdir -p $(O_DIR)
@g++ -c -MMD -MP $(C_FLAGS) $*.cpp -o $(O_DIR)/$*.o
clean :
@echo "Removing temporal files …"
@rm -f $(O_DIR)/*.o $(O_DIR)/*.d
g++ -Dlinux -c -o pro_create.o pro_create.cpp
pro_create.cpp: In function 'void do_program(char_data*, char*, int, int)':
pro_create.cpp:314: warning: minimum/maximum operators are deprecated
g++ -Dlinux -c -o quest.o quest.cpp
g++ -Dlinux -c -o redit.o redit.cpp
redit.cpp: In function 'void redit_parse(descriptor_data*, char*)':
redit.cpp:883: warning: minimum/maximum operators are deprecated
redit.cpp:883: warning: minimum/maximum operators are deprecated
redit.cpp:888: warning: minimum/maximum operators are deprecated
redit.cpp:888: warning: minimum/maximum operators are deprecated
g++ -Dlinux -c -o screen.o screen.cpp
g++ -Dlinux -c -o shop.o shop.cpp
shop.cpp: In function 'void shopping_sell(char*, char_data*, char_data*, int)':
shop.cpp:1074: warning: minimum/maximum operators are deprecated
shop.cpp:1127: warning: minimum/maximum operators are deprecated
This continues with the same errors popping up on most of the files. I'm new to Ubuntu. I haven't encountered this problem in cygwin and I'm not sure what to do. Any help in translating this error would be greatly appreciated. Cheers.
-ryanicus