Annotation of solidite/libc/Makefile, revision 1.1.1.1

1.1       user        1: # This program is free software: you can redistribute it and/or modify it under
                      2: # the terms of the GNU Affero General Public License as published by the Free
                      3: # Software Foundation, either version 3 of the License, or (at your option) any
                      4: # later version.
                      5: # 
                      6: # This program is distributed in the hope that it will be useful, but WITHOUT
                      7: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
                      8: # FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
                      9: # details.
                     10: #
                     11: # You should have received a copy of the GNU Affero General Public License along
                     12: # with this program. If not, see <https://www.gnu.org/licenses/>. 
                     13: 
                     14: ifndef AR
                     15: AR=ar
                     16: endif
                     17: 
                     18: CFLAGS+=-c -ffreestanding -O2
                     19: TARGET=../obj/LIBCDONE
                     20: 
                     21: all: $(TARGET)
                     22: 
                     23: $(TARGET): ../output/lib/libc.a
                     24:        touch ../obj/LIBCDONE
                     25: 
                     26: ../obj/string.o:
                     27:        $(CROSS_COMPILE)$(CC) $(CFLAGS) string.c -o $@
                     28: 
                     29: ../output/lib/libc.a: ../obj/string.o
                     30:        mkdir -p ../output/lib
                     31:        $(CROSS_COMPILE)$(AR) rcs $@ ../obj/string.o
                     32: 
                     33: clean:
                     34:        rm -r obj output

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>