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

Makefile

Blame
  • Forked from Anders Blomdell / LabComm
    384 commits behind the upstream repository.
    Sven Gestegard Robertz's avatar
    Sven Gestegård Robertz authored
    generate three jar files for java lib; labcomm.jar with both versions, and separate jars for only 2013 and 2006
    72af701b
    History
    Makefile 895 B
    MODULES=LabCommDispatcher \
    	LabCommDecoderRegistry \
    	LabComm \
    	LabCommSample \
    	LabCommHandler \
    	LabCommEncoderRegistry \
    	LabCommDecoder \
    	LabCommType \
    	LabCommEncoderChannel \
    	LabCommEncoder \
    	LabCommDecoderChannel \
    	LabCommWriter \
    	LabCommReader \
    	WriterWrapper
    
    all: labcomm.jar labcomm2013.jar labcomm2006.jar
    
    labcomm.jar: gen/JAVAC
    	echo $@
    	cd gen ; jar cf ../$@ se/lth/control/labcomm/*.class se/lth/control/labcomm2006/*.class
    
    labcomm2013.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 labcomm2006.jar labcomm2013.jar gen