[go: up one dir, main page]

Menu

[34cbec]: / Makefile.top  Maximize  Restore  History

Download this file

43 lines (29 with data), 807 Bytes

 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
40
41
42
# -*- makefile -*-
# Makefile for mkmf.
# Makefile for Unix and GNU/Linux with gcc/g++ compiler
CC=gcc
CPP=g++
# if you use egcs-2.90.* version of GCC please add option -fno-exceptions
# to reduce code size and increase performance
# Debug version
#CFLAGS = -c -Wall -O0 -g
# Optimized version
CFLAGS = -c -Wall -O2 -g
# Optimized version with switched off asserts
#CFLAGS = -c -Wall -O2 -g -DNDEBUG
LFLAGS=-g
# Directory to place executables
INSTALL_DIR=/usr/local/bin
all: antic jlint
antic.o: antic.c
$(CC) $(CFLAGS) antic.c
antic: antic.o
$(CC) $(LFLAGS) -o antic antic.o
clean:
rm -f *.o *.exe core *~ *.his *.class jlint antic
targz: clean
cd ..; tar cvzf jlint.tar.gz jlint
install:
cp jlint antic $(INSTALL_DIR)
chmod 755 $(INSTALL_DIR)/antic
chmod 755 $(INSTALL_DIR)/jlint