28 lines
		
	
	
	
		
			752 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			752 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| 
 | |
| .PHONY: default
 | |
| default: ../brminv
 | |
| 
 | |
| SCRP=$(shell chicken-install -repository)
 | |
| CSC=CHICKEN_REPOSITORY_PATH=../eggs:$(SCRP) csc
 | |
| 
 | |
| BRMINV_SOURCES=brminv.scm frontend.import.scm
 | |
| BRMINV_OBJS=brminv.o frontend.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,-lsqlite3 -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_SOURCES=brminv.scm frontend.import.scm
 | |
| 
 | |
| brminv.o: $(BRMINV_SOURCES)
 |