-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (34 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Ensimag 2A POO - TP 2015/16
# ============================
#
# Ce Makefile permet de compiler le test de l'ihm en ligne de commande.
# Alternative (recommandee?): utiliser un IDE (eclipse, netbeans, ...)
# Le but est d'illustrer les notions de "classpath", a vous de l'adapter
# a votre projet.
#
# Organisation:
# 1) Les sources (*.java) se trouvent dans le repertoire src
# Les classes d'un package toto sont dans src/toto
# Les classes du package par defaut sont dans src
#
# 2) Les bytecodes (*.class) se trouvent dans le repertoire bin
# La hierarchie des sources (par package) est conservee.
# Pour un package (ici gui.jar), il est aussi dans bin.
#
# Compilation:
# Options de javac:
# -d : repertoire dans lequel sont places les .class compiles
# -classpath : repertoire dans lequel sont cherches les .class deja compiles
# -sourcepath : repertoire dans lequel sont cherches les .java (dependances)
all: testGUI
testGUI:
javac -d bin -classpath bin/gui.jar -sourcepath src src/TestGUI.java
# Execution:
# on peut taper directement la ligne de commande :
# > java -classpath bin TestGUI
# ou bien lancer l'execution en passant par ce Makefile:
# > make exeIHM
exeGUI:
java -classpath bin:bin/gui.jar TestGUI
clean:
rm -rf bin/*.class