added makefiles to compile with mingw

This commit is contained in:
Joachim Bauch
2010-10-24 00:37:53 +02:00
parent 1f8eb009e5
commit a486d330f2
8 changed files with 35 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
*.o
*.exe
+1 -1
View File
@@ -8,7 +8,7 @@
typedef int (*addNumberProc)(int, int);
#define DLL_FILE "..\\..\\SampleDLL\\Debug\\SampleDLL.dll"
#define DLL_FILE "..\\SampleDLL\\SampleDLL.dll"
void LoadFromFile(void)
{
+16
View File
@@ -0,0 +1,16 @@
CC = gcc
CPP = g++
LINK = ld
CFLAGS = -Wall -g
LDFLAGS =
OBJ = DllLoader.o ../../MemoryModule.o
DllLoader.exe: $(OBJ)
$(CC) $(LDFLAGS) -o DllLoader.exe $(OBJ)
%.o: %.cpp
$(CPP) $(CFLAGS) -c $<
%.o: %.cc
$(CC) $(CFLAGS) -c $<