mirror of https://github.com/aamine/cbc
28 lines
384 B
Makefile
28 lines
384 B
Makefile
CBC = ../bin/cbc
|
|
CBFLAGS = -O -fPIC
|
|
TARGET = libcbc.a
|
|
OBJS = stdarg.o alloca.o
|
|
|
|
CC = gcc
|
|
CFLAGS = -Wall
|
|
AR_CREATE = ar crs
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .cb .s .o
|
|
|
|
.cb.o:
|
|
$(CBC) $(CBFLAGS) -c $< -o $@
|
|
.s.o:
|
|
$(CBC) -c $<
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(AR_CREATE) $(TARGET) $(OBJS)
|
|
|
|
stdarg.o: stdarg.cb
|
|
|
|
sizeof_jmpbuf: sizeof_jmpbuf.c
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
|
|
clean:
|
|
rm -f $(TARGET) *.o stdarg.s
|