From e1a7e2bdefa24a6b1400c65f9e638881c7502900 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 21 May 2007 19:09:19 +0000 Subject: [PATCH] Fix regeneration of headers --- Makefile.am | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/Makefile.am b/Makefile.am index 545508c2..b7301cec 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,22 +11,27 @@ pixmap_DATA = htop.png AM_CFLAGS = -pedantic -Wall -std=c99 AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" -htop_SOURCES = AvailableMetersPanel.c CategoriesPanel.c ClockMeter.c \ -CPUMeter.c CRT.c DebugMemory.c DisplayOptionsPanel.c FunctionBar.c \ -Hashtable.c Header.c htop.c Panel.c ListItem.c LoadAverageMeter.c \ -MemoryMeter.c Meter.c MetersPanel.c Object.c Process.c \ -ProcessList.c RichString.c ScreenManager.c Settings.c SignalItem.c \ -SignalsPanel.c String.c SwapMeter.c TasksMeter.c Vector.c \ -UptimeMeter.c UsersTable.c AvailableMetersPanel.h CategoriesPanel.h \ -ClockMeter.h config.h CPUMeter.h CRT.h debug.h DebugMemory.h \ -DisplayOptionsPanel.h FunctionBar.h Hashtable.h Header.h htop.h Panel.h \ -ListItem.h LoadAverageMeter.h MemoryMeter.h Meter.h \ -MetersPanel.h Object.h Process.h ProcessList.h RichString.h ScreenManager.h \ -Settings.h SignalItem.h SignalsPanel.h String.h SwapMeter.h TasksMeter.h \ -Vector.h UptimeMeter.h UsersTable.h CheckItem.c CheckItem.h \ -ColorsPanel.c ColorsPanel.h TraceScreen.c TraceScreen.h \ -AvailableColumnsPanel.c AvailableColumnsPanel.h ColumnsPanel.c \ -ColumnsPanel.h +myhtopsources = AvailableMetersPanel.c CategoriesPanel.c CheckItem.c \ +ClockMeter.c ColorsPanel.c ColumnsPanel.c CPUMeter.c CRT.c DebugMemory.c \ +DisplayOptionsPanel.c FunctionBar.c Hashtable.c Header.c htop.c ListItem.c \ +LoadAverageMeter.c MemoryMeter.c Meter.c MetersPanel.c Object.c Panel.c \ +Process.c ProcessList.c RichString.c ScreenManager.c Settings.c \ +SignalItem.c SignalsPanel.c String.c SwapMeter.c TasksMeter.c TraceScreen.c \ +UptimeMeter.c UsersTable.c Vector.c AvailableColumnsPanel.c + +myhtopheaders = AvailableColumnsPanel.h AvailableMetersPanel.h \ +CategoriesPanel.h CheckItem.h ClockMeter.h ColorsPanel.h ColumnsPanel.h \ +CPUMeter.h CRT.h DebugMemory.h DisplayOptionsPanel.h FunctionBar.h \ +Hashtable.h Header.h htop.h ListItem.h LoadAverageMeter.h MemoryMeter.h \ +Meter.h MetersPanel.h Object.h Panel.h ProcessList.h RichString.h \ +ScreenManager.h Settings.h SignalItem.h SignalsPanel.h String.h \ +SwapMeter.h TasksMeter.h TraceScreen.h UptimeMeter.h UsersTable.h Vector.h \ +Process.h + +SUFFIXES = .h + +BUILT_SOURCES = $(myhtopheaders) +htop_SOURCES = $(myhtopheaders) $(myhtopsources) config.h debug.h profile: $(MAKE) all CFLAGS="-pg -O2" @@ -40,5 +45,8 @@ hardened-debug: debuglite: $(MAKE) all CFLAGS="-ggdb -DDEBUGLITE" -.h:.c - scripts/MakeHeader $@ \ No newline at end of file +.c.h: + scripts/MakeHeader.py $< + + +