Skip to content
Snippets Groups Projects
Select Git revision
  • 45b8e760c9119ade48b97e093eacc9fb55506555
  • master default
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.1
  • v2014.0
  • v2013.0
10 results

Makefile

Blame
  • Forked from Anders Blomdell / LabComm
    389 commits behind the upstream repository.
    Makefile 736 B
    MODULES=LabCommDispatcher \
    	LabCommDecoderRegistry \
    	LabComm \
    	LabCommSample \
    	LabCommHandler \
    	LabCommEncoderRegistry \
    	LabCommDecoder \
    	LabCommType \
    	LabCommEncoderChannel \
    	LabCommEncoder \
    	LabCommDecoderChannel \
    	LabCommWriter \
    	LabCommReader \
    	WriterWrapper
    
    all: labcomm.jar labcomm2006.jar
    
    labcomm.jar: gen/JAVAC
    	echo $@
    	cd gen ; jar cf ../$@ se/lth/control/labcomm/*.class
    
    labcomm2006.jar: gen/JAVAC
    	echo $@
    	cd gen ; jar cf ../$@ se/lth/control/labcomm2006/*.class
    
    gen:
    	mkdir gen
    
    gen/JAVAC: $(MODULES:%=se/lth/control/labcomm/%.java) $(MODULES:%=se/lth/control/labcomm2006/%.java) Makefile | gen
    	javac -d gen $(filter %.java, $^)
    	touch $@
    
    
    .PHONY: clean
    
    clean:
    	rm -rf labcomm.jar gen labcomm2006.jar