libConsole/Makefile
changeset 66 2b4f786d9073
parent 55 2a20d0184041
child 102 b8ff193b1a01
equal deleted inserted replaced
65:76514757b0d6 66:2b4f786d9073
     1 CC=gcc
     1    CC = gcc
     2 JAVA=java
     2  JAVA = java
     3 JAVAH=javah
     3 JAVAH = javah
     4 JAVAC=javac
     4 JAVAC = javac
     5 LIB=lib/libConsole.so
     5   LIB = lib/libConsole.so
     6 
     6 
     7 ifdef JAVA_HOME
     7 ifdef JAVA_HOME
     8 	JAVA_DIR="$(JAVA_HOME)"
     8 	JAVA_DIR="$(JAVA_HOME)"
     9 else
     9 else
    10 	JAVA_DIR=/usr/lib/jvm/java-6-sun
    10 	JAVA_DIR=/usr/lib/jvm/java-6-sun
    11 endif
    11 endif
    12 
    12 
    13 INCLUDE=-I$(JAVA_DIR)/include -I$(JAVA_DIR)/include/linux -Iinclude
    13 INCLUDE = -I$(JAVA_DIR)/include -I$(JAVA_DIR)/include/linux -Iinclude
    14 SOURCES= \
       
    15 	Getch.java \
       
    16 	Console.java
       
    17 
    14 
    18 OBJECTS= \
    15 SOURCES  = Getch.java
    19 	cross_getch.o
    16 SOURCES += Console.java
       
    17 
       
    18 OBJECTS  = cross_getch.o
    20 
    19 
    21 .SUFFIXES: .java
    20 .SUFFIXES: .java
    22 
    21 
    23 .c.o:
    22 .c.o:
    24 	@echo "JAVA_HOME=$(JAVA_DIR)"
    23 	@echo "JAVA_HOME=$(JAVA_DIR)"