Skip to content

Commit 32ac3d6

Browse files
srjsrinijar3m
andauthored
Fault manager (#10)
* Commit Logs - Created New branch for fault handling - Make file rule def for .out files clean up (come up with a better name) * commit logs - makefile clean up - change executable name to foo.out - updated os.h Co-authored-by: jar3m <[email protected]>
1 parent a7a42da commit 32ac3d6

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export
3737

3838
all: $(MODULE_ARCHIVES)
3939
@echo "All archives ($(MODULE_ARCHIVES)) created"
40-
$(CC) $(INCLUDES) $^ -o $@ $(MODULE_ARCHIVES) $(LDLIBS) $(CFLAGS)
40+
$(CC) $(INCLUDES) $^ -o foo.out $(MODULE_ARCHIVES) $(LDLIBS) $(CFLAGS)
4141

4242
$(common_ARCHIVE) :
4343
make -C common/ all
@@ -49,7 +49,6 @@ $(ds_ARCHIVE) :
4949
make -C ds/ all
5050

5151
$(test_ARCHIVE) :
52-
echo "----- $(INCLUDES)"
5352
make -C test/ all
5453

5554
.PHONY: clean help
@@ -58,7 +57,7 @@ clean:
5857
make -C test/ clean
5958
# make -C ds/ clean
6059
find ${PROJ_PATH} -name "*.[ao]" -exec rm -v {} \;
61-
rm $(PROJ_PATH)/gmon.out
60+
find ${PROJ_PATH} -name "*.out" -exec rm -v {} \;
6261

6362

6463
help:

common/inc/os.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
#include <stdio.h>
2+
#include <stdlib.h>
3+
#include <stdint.h>
4+
#include <string.h>
5+
#include <assert.h>
6+
#include <pthread.h>
7+
#include <signal.h>

test/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ test_ARCHIVE=$(PROJ_PATH)/test/bin/test.a
1212
OBJS=$(test_OBJ)
1313

1414
$(test_OBJ): $(test_SRC)
15-
echo "----- $(INCLUDES)"
1615
$(CC) $(INCLUDES) -c $^ -o $@ $(CFLAGS)
1716

1817
all: $(OBJS)

0 commit comments

Comments
 (0)