4838522 [rkeene@sledge /home/rkeene/projects/webdraw]$ cat -n Makefile
 1 CFLAGS = -Wall -Werror -pthread -O3 -DNDEBUG=1
 2 LDFLAGS = $(LIBS)
 3 LIBS = -lpthread -lgd
 4 WEBDIR = /web/rkeene/projects/webdraw/
 5 
 6 serv: serv.o
 7 serv.o: serv.c
 8 
 9 # Win32 version, hack.
10 serv.exe: serv.c win32-pthread-emul.h
11     i586-mingw32msvc-gcc -mno-cygwin -Wall -Werror -O3 -DNDEBUG=1 -I/home/rkeene/root/windows-i386/include $^
	-L/home/rkeene/root/windows-i386/lib -static -lgd -lpng -lz -lws2_32 -o $@
12 
13 .PHONY: clean distclean put-web
14 put-web:
15     $(MAKE) clean serv.exe
16     rm -f *.o
17     cp * "$(WEBDIR)/"
18     rm -f "$(WEBDIR)/HEADER"
19 
20 clean:
21     rm -f serv serv.exe *.o
22 
23 distclean: clean
4838523 [rkeene@sledge /home/rkeene/projects/webdraw]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2009-06-22 22:25:49