#
# Makefile for HexEdit v0.21 (src directory)
# (c) 1999, 2000 Petr Baudis <pasky@libra.sinus.cz>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License - please see
# any source file of HexEdit to get more informations about it.
#
# My second makefile :) - Nice, no?
#

# What is what :

SOURCES=calculator.c display.c
OBJECTS=$(SOURCES:.c=.o)

############################################
# and targets :

all: ../bin/hexedit

debug: all

../bin/hexedit: hexedit.o $(OBJECTS)
	- mkdir -p ../bin
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ hexedit.o $(OBJECTS) $(LDLIBS)


lazyclean:
	- rm -f *~ core

clean: lazyclean
	- rm -f $(OBJECTS) hexedit.o

distclean: clean
	- rm -f ../bin/hexedit


# gcc -o $1 $1.c -Wall $GCC_OPTIONS $2 $3 $4 $5 $6 $7 $8 $9

