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
21# run local version of tcc with local libraries and includes21# run local version of tcc with local libraries and includes
22TCC=./tcc -B. -I.22TCC=./tcc -B. -I.
23 23
24all: tcc libtcc1.o bcheck.o tcc-doc.html tcc.1 libtcc.a libtcc_test24all: tcc libtcc1.a bcheck.o tcc-doc.html tcc.1 libtcc.a libtcc_test
25 25
26Makefile: config.mak26Makefile: config.mak
27 27
@@ -118,17 +118,20 @@ tcc: tcc_g Makefile · 90 unmodified lines
118libtcc1.o: libtcc1.c118libtcc1.o: libtcc1.c
119 $(CC) -O2 -Wall -c -o $@ $<119 $(CC) -O2 -Wall -c -o $@ $<
120 120
121libtcc1.a: libtcc1.o
122 $(AR) rcs $@ $^
123
121bcheck.o: bcheck.c124bcheck.o: bcheck.c
122 $(CC) -O2 -Wall -c -o $@ $<125 $(CC) -O2 -Wall -c -o $@ $<
123 126
124install: tcc_install libinstall127install: tcc_install libinstall
125 128
126tcc_install: tcc tcc.1 libtcc1.o bcheck.o129tcc_install: tcc tcc.1 libtcc1.a bcheck.o
127 $(INSTALL) -m755 tcc $(bindir)130 $(INSTALL) -m755 tcc $(bindir)
128 $(INSTALL) tcc.1 $(mandir)/man1131 $(INSTALL) tcc.1 $(mandir)/man1
129 mkdir -p $(libdir)/tcc132 mkdir -p $(libdir)/tcc
130 mkdir -p $(libdir)/tcc/include133 mkdir -p $(libdir)/tcc/include
131 $(INSTALL) -m644 libtcc1.o bcheck.o $(libdir)/tcc134 $(INSTALL) -m644 libtcc1.a bcheck.o $(libdir)/tcc
132 $(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \135 $(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \
133 tcclib.h $(libdir)/tcc/include136 tcclib.h $(libdir)/tcc/include
134 137

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