48 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| 
 | |
| .PHONY: default
 | |
| default: ../brminv
 | |
| 
 | |
| SCRP=$(shell chicken-install -repository)
 | |
| CSC=CHICKEN_REPOSITORY_PATH=../eggs:$(SCRP) csc
 | |
| 
 | |
| BRMINV_SOURCES=brminv.scm frontend.import.scm command-line.import.scm	\
 | |
| 	util-proc.import.scm duck.import.scm texts.import.scm
 | |
| BRMINV_OBJS=brminv.o frontend.o command-line.o util-proc.o duck.o	\
 | |
| 	texts.o
 | |
| 
 | |
| %.o: %.scm
 | |
| 	$(CSC) -c -static $<
 | |
| 
 | |
| %.import.scm: %.scm
 | |
| 	$(CSC) -regenerate-import-libraries -P -J $<
 | |
| 
 | |
| ../brminv: $(BRMINV_OBJS)
 | |
| 	$(CSC) -L --no-lto -L -Wl,-static -L -Wl,-lssl -L -Wl,-lcrypto -L -Wl,-Bdynamic -strip -static -o $@ $(BRMINV_OBJS)
 | |
| 
 | |
| frontend.o: frontend.import.scm
 | |
| frontend.import.scm: frontend.scm
 | |
| .PHONY: frontend.scm
 | |
| frontend.scm:
 | |
| 	cd ../frontend && npm run build && cd ../backend && csi -b -q ../tools/schemify-tree.scm -- ../frontend/dist frontend frontend-lookup
 | |
| 
 | |
| brminv.o: $(BRMINV_SOURCES)
 | |
| 
 | |
| DUCK-SOURCES=duck.scm
 | |
| 
 | |
| duck.o: duck.import.scm
 | |
| duck.import.scm: $(DUCK-SOURCES)
 | |
| 
 | |
| UTIL-PROC-SOURCES=util-proc.scm duck.import.scm
 | |
| 
 | |
| util-proc.o: util-proc.import.scm
 | |
| util-proc.import.scm: $(UTIL-PROC-SOURCES)
 | |
| 
 | |
| COMMAND-LINE-SOURCES=command-line.scm util-proc.import.scm
 | |
| 
 | |
| command-line.o: command-line.import.scm
 | |
| command-line.import.scm: $(COMMAND-LINE-SOURCES)
 | |
| 
 | |
| TEXTS-SOURCES=texts.scm
 | |
| 
 | |
| texts.o: texts.import.scm
 | |
| texts.import.scm: $(TEXTS-SOURCES)
 |