# # Makefile include file for rsxnt # # Default: Dual mode, no Crt Dll, Optimize # # Call 'make crt=1' to use the C runtime dll # Call 'make multi=1' to build multithread app / use multithread dll # Call 'make gui=1' to build GUI win32 program # Call 'make debug=1' to include debug info # !ifdef crt !ifdef multi GCCFLAGS= -Zwin32 -Zmt -Zcrtdll !else GCCFLAGS= -Zwin32 -Zcrtdll !endif !else # not crt ifdef gui GCCFLAGS= -Zrsx32 !endif !else # not gui !ifdef multi GCCFLAGS= -Zwin32 -Zmt !else GCCFLAGS= -Zwin32 !endif !endif # crt !ifdef debug CFLAGS = -Wall -g LDFLAGS = -g !else CFLAGS = -Wall -O LDFLAGS = !endif CC = gcc $(GCCFLAGS) RC = grc RCFLAGS = -r RES = rsrc RESFLAGS= IMPLIB = makelib DLLFLAGS= -Zdll .c.o: $(CC) -c $(CFLAGS) $< .o.exe: $(CC) $(LDFLAGS) $< .rc.res: $(RC) $(RCFLAGS) $<