star-cad

Geometric operators for computer-aided design
git clone git://git.meso-star.fr/star-cad.git
Log | Files | Refs | README | LICENSE

commit f9ef7e3d30cc5751b016b2f3b5ac82c5889722ca
parent fbeff4a57d44f381c17a35c2a5654cdd0282f354
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  7 Apr 2022 17:11:52 +0200

Makefile: apply the GPLv3 small updates

Diffstat:
MMakefile | 33+++++++++++++++++++++------------
1 file changed, 21 insertions(+), 12 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,40 +1,49 @@ +# Copyright (C) 2022 |Meso|Star> (contact@meso-star.com) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +.POSIX: .SUFFIXES: # Clean up default inference rules include config.mk SRC = src/scad.c - OBJ = $(SRC:.c=.o) -all: static_lib +libscad.a: $(OBJ) + $(AR) $(AFLAGS) libscad.a $(OBJ) $(OBJ): config.mk -static_lib: $(OBJ) - $(AR) $(AFLAGS) libscad.a $(OBJ) - .SUFFIXES: .c .o .c.o: $(CC) $(CFLAGS) -c $< -o $@ -#------------------------------------------------------------------------------ - test: $(OBJ) src/test.o - $(CC) -o $@ src/test.o $(OBJ) $(LDLIBS) $(LDFLAGS) + $(CC) -o $@ src/test.o $(OBJ) libscad.a $(LDLIBS) $(LDFLAGS) src/test.o: src/test.c $(CC) $(CFLAGS) -c $< -o $@ clean: - @rm -f $(OBJ) libscad.a src/test.o test - -API = src/scad.h + rm -f $(OBJ) libscad.a src/test.o test install: static_lib mkdir -p $(PREFIX)/lib mkdir -p $(PREFIX)/include/ cp libscad.a $(PREFIX)/lib - cp $(API) $(PREFIX)/include/ + cp src/scad.h $(PREFIX)/include/ uninstall: rm -f $(PREFIX)/lib/libscad.a