Skip to content

Commit

Permalink
modified instructions for creating executable
Browse files Browse the repository at this point in the history
  • Loading branch information
mintRaven-05 authored Jul 12, 2024
1 parent 07c970c commit 46d95ee
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CC = gcc
BIN = atlas
MAIN = atlas.c
DECODE_PGM_PATH = ./libs/decoder/program/
DECODE_HEADER_PATH = ./libs/decoder/header/
VIEW_HEADER_PATH = ./libs/view/
CFLAGS = -Wno-implicit-function-declaration
OBJS = $(DECODE_HEADER_PATH)decode_head.o $(VIEW_HEADER_PATH)stdout_header.o $(DECODE_PGM_PATH)decode_PGM_x64.o $(VIEW_HEADER_PATH)stdout_pgm.o $(VIEW_HEADER_PATH)stdout_help.o
all: atlas

atlas: $(OBJS)
@echo "object files prepared"
@echo ""
@echo "Linking objects into atlas"
@$(CC) -c $(MAIN) -o atlas.o
@$(CC) $(OBJS) atlas.o -o $(BIN)

clean:
@rm atlas.o
@rm $(OBJS)
@rm $(BIN)

0 comments on commit 46d95ee

Please sign in to comment.