mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
496e62e01d
This translates the meson build to nix. Previously, we had our ge-additions package just manually compiled in instead of having its own file.
21 lines
467 B
Makefile
21 lines
467 B
Makefile
CC ?= cc
|
|
AR ?= ar
|
|
PREFIX ?= ./out
|
|
|
|
################################################################################
|
|
|
|
.PHONY: all test install clean
|
|
|
|
all: ge-additions.c ge-additions.h
|
|
$(CC) -O3 -Wall -Werror -pedantic -std=gnu99 -c ge-additions.c
|
|
$(AR) rcs libge-additions.a ge-additions.o
|
|
|
|
install: all
|
|
@mkdir -p $(PREFIX)/lib/
|
|
@mkdir -p $(PREFIX)/include/
|
|
cp libge-additions.a $(PREFIX)/lib/
|
|
cp ge-additions.h $(PREFIX)/include/
|
|
|
|
clean:
|
|
rm -rf ./out
|