History

libtcc1 is now a library so that it is linked in only on demand

bellard committed 23 years ago

Commit fe3b68b1 parent 770ef5e1 file · +6 −3Browse files

Unified · Split

Makefile+6−3
@@ -21,7 +21,7 @@ INSTALL=install · 20 unmodified lines
2121 # run local version of tcc with local libraries and includes
2222 TCC=./tcc -B. -I.
2323
24−all: tcc libtcc1.o bcheck.o tcc-doc.html tcc.1 libtcc.a libtcc_test
24+all: tcc libtcc1.a bcheck.o tcc-doc.html tcc.1 libtcc.a libtcc_test
2525
2626 Makefile: config.mak
2727
@@ -118,17 +118,20 @@ tcc: tcc_g Makefile · 90 unmodified lines
118118 libtcc1.o: libtcc1.c
119119 $(CC) -O2 -Wall -c -o $@ $<
120120
121+libtcc1.a: libtcc1.o
122+ $(AR) rcs $@ $^
123+
121124 bcheck.o: bcheck.c
122125 $(CC) -O2 -Wall -c -o $@ $<
123126
124127 install: tcc_install libinstall
125128
126−tcc_install: tcc tcc.1 libtcc1.o bcheck.o
129+tcc_install: tcc tcc.1 libtcc1.a bcheck.o
127130 $(INSTALL) -m755 tcc $(bindir)
128131 $(INSTALL) tcc.1 $(mandir)/man1
129132 mkdir -p $(libdir)/tcc
130133 mkdir -p $(libdir)/tcc/include
131− $(INSTALL) -m644 libtcc1.o bcheck.o $(libdir)/tcc
134+ $(INSTALL) -m644 libtcc1.a bcheck.o $(libdir)/tcc
132135 $(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \
133136 tcclib.h $(libdir)/tcc/include
134137

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t