Skip to content

Commit 1e439fe

Browse files
committed
Makefile stubs for linux and windows
1 parent 55c19f8 commit 1e439fe

File tree

5 files changed

+51
-0
lines changed

5 files changed

+51
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
*.html diff text ident
1111
.project diff text ident
1212
.classpath diff text ident
13+
Makefile diff text ident
14+
*.mk diff text ident

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env make -f
22
#
3+
# $Id$
4+
#
35
# vim:ft=make:
46
#
57

darwin.mk

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env make -f
22
#
3+
# $Id$
4+
#
35
# vim:ft=make:
46
#
57

linux.mk

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env make -f
2+
#
3+
# $Id$
4+
#
5+
# vim:ft=make:
6+
#
7+
8+
ifndef GLOBALS_HOME
9+
$(error GLOBALS_HOME is undefined)
10+
endif # GLOBALS_HOME
11+
12+
CFLAGS = -Wall -Wextra -g
13+
CPPFLAGS = -I${GLOBALS_HOME}/dev/cpp/include
14+
15+
.PHONY: all
16+
all: 770936 770936-dlopen
17+
18+
lib770936-callout.so: 770936-callout.o
19+
$(CC) -dynamiclib -o $@ $<
20+
21+
770936: 770936.o lib770936-callout.so
22+
$(CC) -L. -l770936-callout -o $@ $<
23+
24+
770936-dlopen: 770936-dlopen.o
25+
$(CC) -o $@ $<
26+
27+
.PHONY: clean
28+
clean:
29+
$(RM) *.o *.so 770936 770936-dlopen

windows.mk

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#
2+
# $Id$
3+
#
4+
# vim:ft=make:
5+
#
6+
7+
ifndef GLOBALS_HOME
8+
$(error GLOBALS_HOME is undefined)
9+
endif # GLOBALS_HOME
10+
11+
.PHONY: all
12+
all:
13+
14+
.PHONY: clean
15+
clean:
16+
$(RM) *.dll *.exe

0 commit comments

Comments
 (0)