aboutsummaryrefslogtreecommitdiffstats
path: root/src/fripost-partman-udeb/Makefile
blob: a1e0e734d9fc2dadfd292fdb881b0e604f008c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC ?= gcc
CFLAGS ?= -Wall -x c -s

ifeq (${ARCH}, amd64)
CFLAGS += -m64
endif
ifeq (${ARCH}, i386)
CFLAGS += -m32
endif

LIBS = lib/stdbuf.so

all: ${LIBS}

%.so: %.c
	${CC} ${CFLAGS} $< -fPIC -shared -o $@

clean:
	rm -f ${LIBS}