File: Makefile

package info (click to toggle)
combat 0.8.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,404 kB
  • sloc: tcl: 10,461; sh: 2,535; makefile: 154; ansic: 73
file content (27 lines) | stat: -rwxr-xr-x 619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ifeq ($(findstring Cygwin,$(shell uname -a)),Cygwin)
all: kill-windows-x86.dll
else
ifeq ($(findstring Linux,$(shell uname -a)),Linux)
all: kill-linux-x86.so
else
all:
endif
endif

kill-windows-x86.dll: kill-windows-x86.o
	gcc -shared -o $@ $^ -L. -ltclstub84

kill-windows-x86.o: kill.c
	gcc -c -o $@ -Ic:/Software/Tcl/include -DUSE_TCL_STUBS $<

kill-linux-x86.so: kill-linux-x86.o
	gcc -shared -o $@ $^ -L. -ltclstub8.4

kill-linux-x86.o: kill.c
	gcc -c -o $@ -I/h/fpilhofe/soft/build-linux/include -DUSE_TCL_STUBS $<

clean:
	rm -f *~ *.o core core.*

distclean: clean
	rm -f kill-windows-x86.dll kill-linux-x86.so