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 | |
---|
7 | SHELL = /bin/sh |
---|
8 | |
---|
9 | CC = gcc |
---|
10 | AR = ar |
---|
11 | RANLIB = ranlib |
---|
12 | INSTALL = install -c |
---|
13 | INSTALL_PROGRAM = ${INSTALL} |
---|
14 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
15 | |
---|
16 | ## |
---|
17 | ## compiler and linker options |
---|
18 | ## |
---|
19 | PIPE = -pipe |
---|
20 | CFLAGS = -O3 -w -fomit-frame-pointer ${PIPE} |
---|
21 | CXXFLAGS = -O3 -w -fomit-frame-pointer ${PIPE} |
---|
22 | #CFLAGS = -g ${PIPE} |
---|
23 | #CXXFLAGS = -g ${PIPE} |
---|
24 | |
---|
25 | # normal C source files |
---|
26 | CSOURCES=omFindExec.c |
---|
27 | |
---|
28 | HEADERS=omalloc.h |
---|
29 | |
---|
30 | OBJS := $(CSOURCES:.c=.o) |
---|
31 | |
---|
32 | .cc.o: |
---|
33 | ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $< |
---|
34 | .c.o: |
---|
35 | ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< |
---|
36 | |
---|
37 | all: libomalloc_ndebug.a |
---|
38 | |
---|
39 | libomalloc_ndebug.a: $(OBJS) |
---|
40 | rm -f $@ |
---|
41 | $(AR) cr $@ $(OBJS) |
---|
42 | $(RANLIB) $@ |
---|
43 | |
---|
44 | clean: |
---|
45 | rm *.o *.a |
---|
Note: See
TracBrowser
for help on using the repository browser.