source: git/xalloc/Makefile @ d9e190

fieker-DuValspielwiese
Last change on this file since d9e190 was f9201c, checked in by Oleksandr Motsak <motsak@…>, 14 years ago
Adding xalloc (emulation of omalloc)
  • Property mode set to 100644
File size: 849 bytes
Line 
1#################################################################
2###
3### Makefile for xalloc
4###
5#################################################################
6
7SHELL           = /bin/sh
8
9CC              = gcc
10AR              = ar
11RANLIB          = ranlib
12INSTALL         = install -c
13INSTALL_PROGRAM = ${INSTALL} 
14INSTALL_DATA    = ${INSTALL} -m 644
15
16##
17## compiler and linker options
18##
19PIPE            = -pipe
20CFLAGS          = -O3 -w -fomit-frame-pointer ${PIPE}
21CXXFLAGS        = -O3 -w -fomit-frame-pointer ${PIPE}
22#CFLAGS         = -g ${PIPE}
23#CXXFLAGS       = -g ${PIPE}
24
25# normal C source files
26CSOURCES=omFindExec.c
27
28HEADERS=omalloc.h
29
30OBJS := $(CSOURCES:.c=.o)
31
32.cc.o: 
33        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $<
34.c.o:
35        ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
36
37all:    libomalloc_ndebug.a
38
39libomalloc_ndebug.a: $(OBJS)
40        rm -f $@
41        $(AR) cr $@ $(OBJS)
42        $(RANLIB) $@
43
44clean:
45        rm *.o *.a
Note: See TracBrowser for help on using the repository browser.