| 
									
										
										
										
											2018-06-17 03:20:35 +00:00
										 |  |  | DIABLO_SRC=$(wildcard Source/*.cpp) | 
					
						
							|  |  |  | DIABLO_OBJ=$(DIABLO_SRC:.cpp=.o) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PKWARE_SRC=$(wildcard 3rdParty/PKWare/*.cpp) | 
					
						
							|  |  |  | PKWARE_OBJ=$(PKWARE_SRC:.cpp=.o) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | all: devilution.exe | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-20 01:33:01 +00:00
										 |  |  | devilution.exe: $(DIABLO_OBJ) $(PKWARE_OBJ) diabloui.lib storm.lib | 
					
						
							| 
									
										
										
										
											2018-06-17 03:20:35 +00:00
										 |  |  | 	mingw32-gcc -L./ -o $@ $^ -lgdi32 -lversion -ldiabloui -lstorm | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %.o: %.cpp | 
					
						
							| 
									
										
										
										
											2018-06-20 01:33:01 +00:00
										 |  |  | 	mingw32-gcc -c -fpermissive -Wno-write-strings -o $@ $< | 
					
						
							| 
									
										
										
										
											2018-06-17 03:20:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-20 01:33:01 +00:00
										 |  |  | diabloui.lib: diabloui.dll DiabloUI/diabloui_gcc.def | 
					
						
							|  |  |  | 	dlltool -d DiabloUI/diabloui_gcc.def -D diabloui.dll -l diabloui.lib | 
					
						
							| 
									
										
										
										
											2018-06-17 03:20:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-20 01:33:01 +00:00
										 |  |  | diabloui.dll: | 
					
						
							|  |  |  | 	echo "Please copy diabloui.dll (version 1.09b) here." | 
					
						
							| 
									
										
										
										
											2018-06-17 03:20:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-20 01:33:01 +00:00
										 |  |  | storm.lib: storm.dll 3rdParty/Storm/Source/storm_gcc.def | 
					
						
							|  |  |  | 	dlltool -d 3rdParty/Storm/Source/storm_gcc.def -D storm.dll -l storm.lib | 
					
						
							| 
									
										
										
										
											2018-06-17 03:20:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-20 01:33:01 +00:00
										 |  |  | storm.dll: | 
					
						
							|  |  |  | 	echo "Please copy storm.dll (version 1.09b) here." | 
					
						
							| 
									
										
										
										
											2018-06-17 03:20:35 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | clean: | 
					
						
							|  |  |  | 	rm -f $(DIABLO_OBJ) $(PKWARE_OBJ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .PHONY: clean all |