Hi:
Each time I select the generate makefile option from the project option,
when I type make -f makefilename I get the next results:
windres --include-dir C:\Dev-Cpp\Include\ --include-dir
C:\Dev-Cpp\Include\G__~1
--include-dir C:\Dev-Cpp\Include\G__-3~1 --include-dir
C:\Dev-Cpp\Include\ --us
e-temp-file -I rc -O coff -i "D:\WIN32P~1\DCEXPL~1\DCEXPL~1.RC" -o
"D:\WIN32P~1\
DCEXPL~1\DCEXPL~1.o"
Usage: c:\Dev-Cpp\Bin\windres.exe [options] [input-file] [output-file]
Options:
-i FILE, --input FILE Name input file
-o FILE, --output FILE Name output file
-I FORMAT, --input-format FORMAT
Specify input format
-O FORMAT, --output-format FORMAT
Specify output format
-F TARGET, --target TARGET Specify COFF target
--preprocessor PROGRAM Program to use to preprocess rc file
--include-dir DIR Include directory when preprocessing rc
file
-DSYM[=VAL], --define SYM[=VAL]
Define SYM when preprocessing rc file
-v Verbose - tells you what it's doing
--language VAL Set language when reading rc file
--use-temp-file Use a temporary file instead of popen to
read
the preprocessor output
--no-use-temp-file Use popen (default)
--help Print this help message
--version Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified. A single file name is an input file.
No input-file is stdin, default rc. No output-file is stdout, default
rc.
c:\Dev-Cpp\Bin\windres.exe: supported targets: pe-i386 pei-i386
elf32-i386 elf32
-little elf32-big srec symbolsrec tekhex binary ihex
make: *** [compile_res] Error 1
I don't know yet the details of writing a makefile, so I don't know
what's happening in the code, I add one of them for a windows app.
Windows 2000, Intel Pentium III, x86 6.5.5.
And another simple makefile for a two source fileas project, for a
console program, so you see it's not only for windows ones:
#####################################
# #
# Makefile for armachin #
# Generated by Bloodshed Dev-C++ #
# #
#####################################
# Compiler
CC=g++
# Parameters given to the compiler
CFLAGS=-ggdb -O3 -IC:\Dev-Cpp\Include\ -IC:\Dev-Cpp\Include\G__~1
-IC:\Dev-Cpp\Include\G__-3~1 -IC:\Dev-Cpp\Include\ -LC:\Dev-Cpp\Lib\
-LC:\wxMSW\lib\ -BC:\Dev-Cpp\Bin\
# Output filename (*.exe)
OUTPUT="armachin.exe"
# Source files
SRCS="D:\Devpro\NewF\armadur.cpp" "D:\Devpro\NewF\armario.cpp"
# Output object files (*.o)
OBJS="D:\Devpro\NewF\armadur.o" "D:\Devpro\NewF\armario.o"
"D:\Devpro\NewF\rsrc.o"
# Standard targets
all: compile_res
$(CC) -c $(SRCS) $(CFLAGS)
$(CC) -o $(OUTPUT) $(OBJS) $(CFLAGS)
compile_res:
windres --include-dir C:\Dev-Cpp\Include\ --include-dir
C:\Dev-Cpp\Include\G__~1 --include-dir C:\Dev-Cpp\Include\G__-3~1
--include-dir C:\Dev-Cpp\Include\ --use-temp-file -I rc -O coff -i
"D:\Devpro\NewF\rsrc.rc" -o "D:\Devpro\NewF\rsrc.o"
test: all
./$(OUTPUT)
clean:
del *.o
mrproper: clean
|