equal
deleted
inserted
replaced
1 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
1 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
2 # Use subject to license terms. |
2 # Use is subject to license terms. |
3 # |
3 # |
4 # Permission is hereby granted, free of charge, to any person obtaining a |
4 # Permission is hereby granted, free of charge, to any person obtaining a |
5 # copy of this software and associated documentation files (the |
5 # copy of this software and associated documentation files (the |
6 # "Software"), to deal in the Software without restriction, including |
6 # "Software"), to deal in the Software without restriction, including |
7 # without limitation the rights to use, copy, modify, merge, publish, |
7 # without limitation the rights to use, copy, modify, merge, publish, |
24 # Except as contained in this notice, the name of a copyright holder |
24 # Except as contained in this notice, the name of a copyright holder |
25 # shall not be used in advertising or otherwise to promote the sale, use |
25 # shall not be used in advertising or otherwise to promote the sale, use |
26 # or other dealings in this Software without prior written authorization |
26 # or other dealings in this Software without prior written authorization |
27 # of the copyright holder. |
27 # of the copyright holder. |
28 # |
28 # |
29 # @(#)Makefile 1.1 08/09/30 |
29 # ident "@(#)Makefile 1.2 09/12/05 SMI" |
30 |
30 |
31 SRCS = mkcookie.c |
31 SRCS = mkcookie.c |
32 OBJS = $(SRCS:.c=.o) |
32 OBJS = $(SRCS:.c=.o) |
33 CFLAGS1 = -DTCPCONN -DUNIXCONN -DIPv6 |
33 CFLAGS1 = -DTCPCONN -DUNIXCONN -DIPv6 |
34 |
34 |
35 mkcookie: $(OBJS) |
35 mkcookie: $(OBJS) |
36 $(LD) -o $@ $(CFLAGS) $(CFLAGS1) $(LDFLAGS) $(OBJS) -lX11 -lXau -lnsl |
36 $(LD) -o $@ $(CFLAGS) $(CFLAGS1) $(LDFLAGS) $(OBJS) -lX11 -lXau -lnsl |
37 |
37 |
38 install: mkcookie |
38 install: mkcookie |
39 mkdir -p $(DESTDIR)$(PREFIX)/lib |
39 mkdir -p $(DESTDIR)$(PREFIX)/lib/X11 |
40 $(INSTALL) mkcookie $(DESTDIR)$(PREFIX)/lib |
40 $(INSTALL) mkcookie $(DESTDIR)$(PREFIX)/lib/X11 |