File: makefile.sun

package info (click to toggle)
smapi 2.4.0%2Brc2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 1,016 kB
  • ctags: 1,831
  • sloc: ansic: 11,304; pascal: 394; makefile: 137; asm: 125
file content (32 lines) | stat: -rw-r--r-- 538 bytes parent folder | download
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
28
29
30
31
32
# $Id: makefile.sun,v 1.23 2003/01/15 05:34:22 stas_degteff Exp $
# Legacy Makefile for Solaris (i386 or sparc) and gcc.
# No support for the Husky build environment.

CC=	gcc
CFLAGS=	-Wall
CDEFS=	-D__SUN__
#CDEFS+= -DHAS_SEMUN_UNDECL
COPT=	-O3 -fomit-frame-pointer -fstrength-reduce
LIB=	ar
RANLIB= ranlib
OBJ=	.o

TARGET=	libsmapisun.a

include makefile.inc


all: $(TARGET)

.c.o:
	$(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
	$(LIB) r $(TARGET) $@

$(TARGET): $(OBJS)
	$(RANLIB) $(TARGET)

clean:
	-rm *.o

distclean: clean
	-rm $(TARGET)