#####################################
#                                   #
#  Makefile for bot
#  Generated by Bloodshed Dev-C++   #
#                                   #
#####################################


# Compiler
CC=gcc
# Parameters given to the compiler
CFLAGS=-s -mwindows   -IC:\DEV-C_~1\INCLUDE\ -IC:\DEV-C_~1\INCLUDE\G__~1 -IC:\DEV-C_~1\INCLUDE\ -LC:\DEV-C_~1\LIB\ -BC:\DEV-C_~1\BIN\  
# Output filename (*.exe)
OUTPUT="bot.exe"

# Source files
SRCS="C:\home\bot\download.c" "C:\home\bot\main.c" "C:\home\bot\clones.c" 
# Output object files (*.o)
OBJS="C:\home\bot\download.o" "C:\home\bot\main.o" "C:\home\bot\clones.o"  "C:\home\bot\rsrc.o"

# Standard targets

all: compile_res
	$(CC) -c $(SRCS) $(CFLAGS)
	$(CC) -o $(OUTPUT) $(OBJS) $(CFLAGS)

compile_res:
	windres --include-dir C:\DEV-C_~1\INCLUDE\ --include-dir C:\DEV-C_~1\INCLUDE\G__~1 --include-dir C:\DEV-C_~1\INCLUDE\ --use-temp-file -I rc -O coff -i "C:\HOME\BOT\RSRC.RC" -o "C:\HOME\BOT\RSRC.o"

test: all
	./$(OUTPUT)

clean:
	del *.o

mrproper: clean

