mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-21 14:16:03 -04:00
added makefiles to compile with mingw
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
*.o
|
||||
*.dll
|
||||
@@ -0,0 +1,11 @@
|
||||
CC = g++
|
||||
CFLAGS = -Wall -g -DSAMPLEDLL_EXPORTS
|
||||
LDFLAGS = -shared
|
||||
|
||||
OBJ = SampleDLL.o
|
||||
|
||||
SampleDLL.dll: $(OBJ)
|
||||
$(CC) $(LDFLAGS) -o SampleDLL.dll $(OBJ)
|
||||
|
||||
%.o: %.cpp
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
@@ -7,4 +7,4 @@ SAMPLEDLL_API int addNumbers(int a, int b)
|
||||
return a + b;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,4 +8,4 @@ extern "C" {
|
||||
|
||||
SAMPLEDLL_API int addNumbers(int a, int b);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user