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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
# ProcMeter - A system monitoring program for Linux - Version 3.6.
#
# Makefile for LCD driver part.
#
# Written by Andrew M. Bishop
#
# This file Copyright 1994-2012 Andrew M. Bishop
# It may be distributed under the GNU Public License, version 2, or
# any higher version. See section COPYING of the GNU Public license
# for conditions under which this file may be redistributed.
#
# Programs
CC=gcc
LD=gcc
# Program options
CFLAGS=-g -O2 -Wall
LDFLAGS=-g
# Compilation targets
SRC=$(wildcard *.c)
OBJ=$(foreach f,$(SRC),$(addsuffix .o,$(basename $f)))
PSRC=$(wildcard ../*.c)
POBJ=$(foreach f,$(PSRC),$(addsuffix .o,$(basename $f)))
########
all : ../procmeter3-lcd
########
../procmeter3-lcd : $(OBJ) $(POBJ)
$(LD) $(OBJ) $(POBJ) -o $@ $(LDFLAGS) -ldl -rdynamic
########
%.o:%.c
$(CC) -c $(CFLAGS) $< -o $@ -I..
window.o : window.c ../procmeterp.h ../procmeter.h
menu.o : menu.c ../procmeterp.h ../procmeter.h
run.o : run.c ../procmeterp.h ../procmeter.h
########
$(POBJ) :
$(MAKE) CFLAGS="$(CFLAGS)" -C .. obj
########
.PHONY : clean
clean :
-rm -f *.o *~ core
########
.PHONY : install
install :
|