33 lines
557 B
Makefile
33 lines
557 B
Makefile
|
### HEADER HERE
|
||
|
|
||
|
# @CLASSPATH=$(CLASSPATH) $(JAVAC) $(JFLAGS) $<
|
||
|
|
||
|
#INCLUDES=-I/
|
||
|
#LIBINC=-L
|
||
|
#LIBS=
|
||
|
|
||
|
CC=gcc
|
||
|
CFLAGS=-ggdb -O2 -Wall
|
||
|
USER_CLASSPATH:=../bin:../lib
|
||
|
JFLAGS=-d ../bin -g -deprecation
|
||
|
#-verbose
|
||
|
PRJNAME=Libnazgul
|
||
|
GDATE := $(shell date +"-%Y-%m-%d_r%H")
|
||
|
GFILENAME := ../$(PRJNAME)$(GDATE).tar.bz2
|
||
|
LOCALDIR = $(shell pwd)
|
||
|
BINDIR=../bin
|
||
|
CFILES := $(shell ls *.c)
|
||
|
OFILES := $(patsubst %.c,%.o,$(CFILES))
|
||
|
|
||
|
all: build
|
||
|
|
||
|
build : $(OFILES)
|
||
|
|
||
|
clean:
|
||
|
@echo -e "Cleaning..."
|
||
|
@rm -f *.o
|
||
|
|
||
|
%.o : %.c
|
||
|
$(CC) $(CFLAGS) $(INCLUDES) $(LIBINC) $(LIBS) -c $< -o $*.o
|
||
|
|