5

[other] Creating a simple Makefile for these files

view full story
linux-howto

http://ubuntuforums.org – Hi all. I've found source files for an old public-domain assembler, but it needs a Makefile. The C files are dasm.c , dasmdbg.c , dasmq.c . The header files are dasm.h , dprotos.h and runfile.h . I've struggled to put together a simple Makefile to get these files to compile, but with no luck. This is what I have so far - Code: #  Makefile for DASM  CC = gcc CFLAGS = -O2 -Wall -g $(DEFINES) INCPATH = -I. LDFLAGS = $(SYSLDFLAGS) $(MYLDFLAGS) LIBS = -l$(SYSLIBS) $(MYLIBS) RM = rm -f srcdir = .  SRCS  = *.C  OBJS    = $(SRCS:.c=.o) $( (Hardware)